-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overriding views not load #33
Comments
Hi, Which view do you want to edit ? The overriding system is the Laravel's one, as you can see in the boilerplate service provider. It will use namespace to know which view is overridden, I have to check if I don't forget to use the namespace somewhere. |
Thanks for your quick response, i changed the footer view, also i would like to change the users/* views to add new fields. |
For controllers, the easiest way is to override login routes by setting them in $override = [
'prefix' => config('boilerplate.app.prefix', ''),
'domain' => config('boilerplate.app.domain', ''),
'middleware' => ['web', 'boilerplatelocale'],
'as' => 'boilerplate.',
'namespace' => 'App\Http\Controllers' // < this is the important line
];
Route::group($override, function () {
Route::get('login', ['as' => 'login', 'uses' => 'Auth\LoginController@showLoginForm']);
Route::post('login', ['as' => 'login.post', 'uses' => 'Auth\LoginController@login']);
// Add here the routes you have to override from src/routes/boilerplate.php
}); Will use the methods from Copy the file |
Don't forget to set your new User model with additional fields in |
Thank you @sebastienheyd, really appreciate your response, keep up the great work. |
Hi @sebastienheyd |
You have to extend |
Have a look to the new |
Hi @sebastienheyd,
Thanks for this great package, I want to customize the views, i run this command :
php artisan vendor:publish --tag=boilerplate-views
to override. and views are onresources/views/vendor/boilerplate
when i edit the views on this folder, changes are not show even i clear cache and view. any idea how to fix that ?Thanks in advance.
Best,
The text was updated successfully, but these errors were encountered: