Laravel 5 - Load views blade file from storage folder
问题 Is it possible to load views from storage folder instead from resources\views ? 回答1: Yes, you have a couple of choices. 1. Add another path to your view config file Open up config/view.php and add your new path to the paths array: 'paths' => [ storage_path(), realpath(base_path('resources/views')), ], Laravel will return whichever view that matches first, so be sure to sort the paths accordingly. 2. Add a view namespace Open up app/Providers/AppServiceProvider.php and add your new view