php - Laravel 5.3, Class cant be found, While the route is correct -


i working on view composer:

the problem right have, route im calling inside composerserviceprovider.php says cant find route viewcomposers/lespakketcomposer.php

in config\app.php did add correct app\providers\composerserviceprovider::class,

here code in composerserviceprovider.php

<?php namespace app\providers;  use illuminate\support\serviceprovider; use illuminate\support\facades\view;  class composerserviceprovider extends serviceprovider {      /**      * bootstrap application services.      *      * @return void      */     public function boot()     {          view::composer('*','app\http\viewcomposer\lespakketcomposer');      }      /**      * register application services.      *      * @return void      */     public function register()     {         //     } } 

here error:

reflectionexception in container.php line 734: class app\http\viewcomposer\lespakketcomposer not exist 

the routes in folder structure

does has solution problem? ( file requesting class indeed )

you forgot s:

app\http\viewcomposers\lespakketcomposer 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -