Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Admin\Controllers;
  4.  
  5. use App\Http\Controllers\Controller;
  6. use Encore\Admin\Layout\Content;
  7. use App\Admin\Source\ScheduleGrid;
  8. use App\Models\Schedule;
  9.  
  10. class HomeController extends Controller
  11. {
  12.     public function __invoke(Content $content)
  13.     {
  14.         $schedule = Schedule::getActive();
  15.         $id = $schedule->id;
  16.  
  17.         return $content
  18.             ->header($schedule->name)
  19.             ->description('Active Playlist')
  20.             ->row(ScheduleGrid::create($id));
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement