diff --git a/app/config/app.php b/app/config/app.php index 4444884e7..3c750d415 100644 --- a/app/config/app.php +++ b/app/config/app.php @@ -155,6 +155,7 @@ return array( 'Auth' => 'Illuminate\Support\Facades\Auth', 'Blade' => 'Illuminate\Support\Facades\Blade', 'Cache' => 'Illuminate\Support\Facades\Cache', + 'Carbon' => 'Carbon\Carbon', 'ClassLoader' => 'Illuminate\Support\ClassLoader', 'Config' => 'Illuminate\Support\Facades\Config', 'Controller' => 'Illuminate\Routing\Controller', diff --git a/app/controllers/HomeController.php b/app/controllers/HomeController.php index ede41a7a6..6fe4919b3 100644 --- a/app/controllers/HomeController.php +++ b/app/controllers/HomeController.php @@ -1,23 +1,7 @@ subDays($i); + $incidents = Incident::where('created_at', $incidentDate)->get() +?> +
  • +

    {{ $incidentDate->format('jS M, Y') }}

    + +
  • diff --git a/app/views/index.blade.php b/app/views/index.blade.php new file mode 100644 index 000000000..1c2ec1e87 --- /dev/null +++ b/app/views/index.blade.php @@ -0,0 +1,9 @@ +@extends('layout.master') + +@section('content') + +@stop diff --git a/app/views/layout/master.blade.php b/app/views/layout/master.blade.php new file mode 100644 index 000000000..39731541f --- /dev/null +++ b/app/views/layout/master.blade.php @@ -0,0 +1,10 @@ + + + + Cachet + + + @section('content') + @show + +