Introduce new Setting model. Set the site name.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
class Setting extends Eloquent {
|
||||
public static function get($settingName) {
|
||||
return self::where('name', $settingName)->first()->value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user