PHP code example of renedekat / laravel-view-finder-creater

1. Go to this page and download the library: Download renedekat/laravel-view-finder-creater library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

renedekat / laravel-view-finder-creater example snippets


// config/app.php
'providers' => [
	...
	//Illuminate\View\ViewServiceProvider::class,
	ReneDeKat\LaravelViewFileFinder\ViewServiceProvider::class,
];

// config/app.php
'providers' => [
	...
	//Illuminate\View\ViewServiceProvider::class,
];

// app/Providers/AppServiceProvider
public function register()
{
    ...
    if ('local' == $this->app->environment()) {
        $this->app->register(\ReneDeKat\LaravelViewFileFinder\ViewServiceProvider::class);
    } else {
        $this->app->register(\Illuminate\View\ViewServiceProvider::class);
    }
    ...
}
bash
php artisan vendor:publish --provider="ReneDeKat\LaravelViewFileFinder\ViewServiceProvider" --tag="assets"