Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Model
- <?php
- class Settings extends Eloquent {
- protected $table = 'settings';
- public function scopeMango($query)
- {
- return $query->where('key', '=', 'mango');
- }
- }
- // Controller
- class AdminController extends BaseController
- {
- public function installation_settings()
- {
- $mango = Settings::mango();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement