Open varunsngl opened 7 years ago
I meet the same problem like you and here's my solution.
I put the all the project under resources
and change the path of dist in gulp/conf.js
like views/admin
and add a callback function in gulp build task in gulp/build.js
. The callback function do the follow things.
change the extension of compiled file from
html
intophp
. And also, I replace some href and src with laravel static file path.move the static folders like
assets
,styles
,scripts
from release folder into public path of laravel using thechild_process
library.
Then I'm going to do some redirect in laravel route, because I'm unable to change path in compiled javascript file. Here's my route for it.
Route::get('app/{name}', function($name) {
return redirect('/public/app/' . $name);
})->where('name', '[A-Za-z0-9\/\.\-]+');
Route::get('assets/{name}', function($name) {
return redirect('/public/assets/' . $name);
})->where('name', '[A-Za-z0-9\/\.\-]+');
After all, the admin page will be built into laravel.
First I want to thank you for creating this awesome theme. But I'm in little trouble that integrating it with laravel is little overwhelming.
I'm new in this field and I tried http://stackoverflow.com/questions/38468080/how-to-use-bluradmin-template-with-laravel-5-3 to integrate it with laravel. But some of the modules are not working and also I'm not getting it how to customize. Please help.