I have installed Laravel Base and Laravel CRUD. Everything was alright when I was using the Laravel base only. But after installing Laravel CRUD, everything has been shattered. I am pretty new to Backpack for Laravel, so I am not sure what is going on, or maybe I have missed any step while installing.
I inspected the element and found that elements are not picking the CSS defined by _all_skins.min.css in AdminLTE, for example.
<aside class="main-sidebar">
The class mentioned in this element is picking CSS defined by adminLte but not picking the CSS defined in _all_skins.min.css. I am using it with Laravel 6.0.
Backpack/Base is only used in Backpack v3.
Starting with Backpack v4, Base is no longer required.
Uninstall Backpack/Base - everything it provides is now included in Backpack/CRUD.
Clear all cache using:
php artisan config:clear
php artisan cache:clear
php artisan view:clear
Hope it helps.
Cheers!
Related
In Laravel, I know running composer require laravel/ui and then php artisan ui vue --auth creates authentication scaffolding but it uses Bootstrap. Is there a way to create this scaffolding without Bootstrap?
Unfortunately and as I know, there is no alternative for the bootstrap UI in laravel authentication scaffolding, as I know there is a tailwind but the last update on the repo was 2 years ago so not sure if it is supported now
https://github.com/laravel-frontend-presets/tailwindcss
also, you can change it or create a new one, all view files in this path
resources/views/auth
if you want use TailWindCss And Compatibility with Laravel V9
You Can Use this package :
Github Repo
It's very simple and I've been using it for a few minutes
I'm proceeding with the first installation of Laravel 8, everything is ok, I also installed the authentication system via commands:
composer require laravel/ui
php artisan ui vue --auth
Unfortunately, I can't find any auth folders on the controller.
Furthermore, there is also no auth.php route
Can you tell me how to do it? How do I proceed?
PS: I would also like not to rely on any UI as bootstrap or whatever, but on my assets css and js. (I hope I have explained)
Run php artisan ui:controllers to scaffold the auth controllers.
Laravel is said to come with a Vue installation already packaged, but this no longer appears to be the case. Laravel 7.3 doesn't have the components folder and ExampleComponent.vue are missing.
I would like to get Vue running on Laravel.
Any help would be greatly appreciated.
The frontend scaffolding typically provided with previous releases of Laravel has been extracted into a laravel/ui Composer package. This allows the first-party UI scaffolding to be developed and versioned separately from the primary framework. As a result of this change, no Bootstrap or Vue code is present in default framework scaffolding, and the make:auth command has been extracted from the framework as well.
https://laravel.com/docs/6.x/releases#laravel-6
Inorder to generate the Presets read the documentation: https://laravel.com/docs/7.x/frontend
The Bootstrap and Vue scaffolding provided by Laravel is located in the laravel/ui Composer package, which may be installed using Composer:
composer require laravel/ui
Once the laravel/ui package has been installed, you may install the frontend scaffolding using the ui Artisan command:
// Generate basic scaffolding...
php artisan ui bootstrap
php artisan ui vue
php artisan ui react // use this if you need react instead of vue
// Generate login / registration scaffolding...
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth
Once done with the vue artisan command, you can find the ExampleComponent.vue and the basic files in the js folder.
Reference
I was able to get Vue working on Laravel using this as the correct example:
https://github.com/connor11528/laravel-vue-spa-tailwindcss
I need to create an observer using the laravel artisan command. I tried many ways but can't find the right way.
I think you have been are using laravel 5.5, the artisan comman is available only from Laravel 5.6
Please upgrade your framework in composer.json and change laravel 5.5 to Laravel 5.6. and then you can run php artisan make:observer Test
I just did a fresh install of Laravel v5.5.25. I want to create a brand new project so I want to clear out some files in Laravel. For example, I want to delete all readymade templates (welcome page too), delete bootstrap from Laravel, etc. I just want to do ultimate start. So, will you please guide me what else should I delete too to make it a skeleton? And please tell me how can I remove bootstrap completely and replace it with Bulma.
You can run:
php artisan preset none
to remove default preset.
There is no Bulma preset of of the box, available options are:
none
bootstrap
vue
react
You can use Laravel Presets for that. If you want a “skeleton” as you said you should use php artisan preset none. There is also one for Bulma: composer require laravel-frontend-presets/bulma and then php artisan preset bulma.