mardi 23 mai 2017

No hint path defined for [xxx]

I'm trying to link in my package to a view also in the same package. This is the file structure:

/report/src
/report/src/ReportServiceProvider.php
/report/src/views/test.blade.php
/report/src/SomeClass.php

In my ReportServiceProvider.php I specify the directory where the views should be loading from (like specified here):

public function boot()
{
    $this->loadViewsFrom(__DIR__.'/views', 'reports');
}

With the 'hint' reports, so I should be able to access them with view('reports::test')

Off course I add my ServiceProvider to /config/app.php's providers array like so:

....
Vendor\Report\ReportServiceProvider::class,
....

But when I use the view('reports::test') in SomeClass.php i get the following error:

No hint path defined for [reports]

So somehow it cannot find the reports hint.... What am I missing here?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qcrzbi
via IFTTT

Aucun commentaire:

Enregistrer un commentaire