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
Post a Comment