Ver Fonte

Revert "added lazy loading on note"

This reverts commit 9e11a30f
= há 1 ano atrás
pai
commit
a3794d02e0

+ 1 - 2
app/Http/Controllers/NoteController.php

@@ -25,9 +25,8 @@ use Illuminate\Support\Facades\DB;
 class NoteController extends Controller
 {
 
-    public function dashboard(Request $request, Client $patient,  $note)
+    public function dashboard(Request $request, Client $patient, Note $note)
     {
-
         $pros = $this->pros;
         $noteSections = $note->sections;
         $allSections = SectionTemplate::where('is_active', true)->get();

+ 3 - 1
app/Providers/AppServiceProvider.php

@@ -2,6 +2,7 @@
 
 namespace App\Providers;
 
+use Illuminate\Database\Eloquent\Model;
 use Illuminate\Routing\UrlGenerator;
 use Illuminate\Support\ServiceProvider;
 
@@ -22,11 +23,12 @@ class AppServiceProvider extends ServiceProvider
      *
      * @return void
      */
-    public function boot(UrlGenerator $url) 
+    public function boot(UrlGenerator $url)
     {
         if (config('app.env') !== 'local') {
             $url->forceScheme('https');
             $this->app['request']->server->set('HTTPS','on');
         }
+
     }
 }