Introduce new Setting model. Set the site name.

This commit is contained in:
James Brooks
2014-11-17 14:45:24 +00:00
parent 8562062fcb
commit ad7e1b7439
6 changed files with 71 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
<?php
class Setting extends Eloquent {
public static function get($settingName) {
return self::where('name', $settingName)->first()->value;
}
}