Open reynoldspaul opened 3 years ago
Encountered the same issue numerous times with different combinations of the compiler (and laravel). Maybe it would be nice to have the compiled directory as a config parameter?
Or another option would be to make sure the directory exists and if it doesn't create it.
I ran into the same issue. I just have this set above:
if (! Storage::exists('db-blade-compiler/views')) {
Storage::makeDirectory('db-blade-compiler/views');
}
However, I shouldn't have to do this. It's weird that it doesn't even check within the package itself.
I ran into the same issue. I just have this set above:
if (! Storage::exists('db-blade-compiler/views')) { Storage::makeDirectory('db-blade-compiler/views'); }
However, I shouldn't have to do this. It's weird that it doesn't even check within the package itself.
It works for me with these lines in the boot()
method of the AppServiceProvider.php
(running on Laravel Vapor)
// Create storage/app/db-blade-compiler/views directory if it doesn't exist
if (!file_exists(storage_path('app/db-blade-compiler/views'))) {
mkdir(storage_path('app/db-blade-compiler/views'), 0777, true);
}
Hi, after installation, and running:
I get the following error
I can fix this by manually creating the folder /app/db-blade-compiler/views. I have cache set to false in config
Using Laravel 8,0, latest version of this package