I am having problem on laravel - Voyager admin panel package installation command. When I put this command php artisan voyager:install a notification show on terminal:
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "storage" namespace.
After this php artisan servecommand I found my admin panel but its show a problem, following screen are showing after submitting log in by default password.
GitHub repository for this Package/Doc
Try using this instead of php artisan voyager:install:
composer.phar dump-autoload
php artisan db:seed
This may help you.
Dont forget to add
TCG\Voyager\VoyagerServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
into your config/app.php file in the 'providers' => [ array
You are probably installing this on a version of Laravel 5.2 or earlier. Laravel 5.2 does not have the artisan command to create a symlink. Can you check your Laravel version :)
Solution also posted here: https://devdojo.com/forums/discussion/php/voyager-voyager-e-for-laravel-admin-panel-package-for-laravel
Thanks.
If you instaled Voyager on laravel 5.3, you need to add
TCG\Voyager\VoyagerServiceProvider::class,
to your config/app.php at your PROVIDER and it will work.
Related
I have installed Laravel 8 as a new project. When I run the project I get the "In order to use the Auth::routes() method, please install the laravel/ui package." But Laravel installation doc says that laravel ui is depreciated and that we should use Jetstream. So I installed Jetstream with the Livewire stack. Back to test the project and I get the same error msg.
I have run a composer dump-autoload.
What do I have to do to get a Laravel 8 project to run?
You will need to clear and recreate cache. Run the following php artisan commands:
php artisan cache:clear
php artisan config:cache
php artisan route:cache
I had this problem as well on many 'upgrades' from earlier versions of Laravel. I don't want to change the entire auth mechanism, as it works, so I will keep the code I have.
#Elisha Senoo's answer is correct, and solved it most of the time. However, if you find yourself unable to clear the cache (because it has the same error message on the artisan command), the solution is to manually clear the .php files within the bootstrap/cache folder and then php artisan config:cache.
I have installed the latest version of Lighthouse into my Laravel 7 app and it's been working fine with the out-of-the-box config. I now want to tweak some settings for better security, so as per the docs I have tried to use the following command:
php artisan vendor:publish --tag=lighthouse-config
to publish the config file. But I get the following error:
Unable to locate publishable resources.
Publishing complete.
No lighthouse.php file is published to the config folder. Any ideas how to fix this?
Just tried it in an example project and it worked just fine.
A simple workaround is to run:
cp vendor/nuwave/lighthouse/src/lighthouse.php config/lighthouse.php
Laravel 8 Lighthouse Config:
just run php artisan vendor:publish and choose the class that you want to publish.
it's work for me on Laravel 8
Does someone know why this command gets aborted when I enter it?
D:\sites_laravel\vinyl_shop>php artisan make:auth
The [auth/login.blade.php] view already exists. Do you want to replace it? (yes/no) [no]:
Aborted.
error message
Delete everything inside resources/views/auth folder.
Delete app.blade.php from layouts folder.
Then Try it again.
100% working.
In laravel 6 the auth command updated, it good for you to update your laravel.
and for authentication you need first do this:
composer require laravel/ui --dev
and then run this:
php artisan ui vue --auth
If your laravel version is less than 6, just delete the files related to authentication from resources/views/auth, then it should work for you.
i think there is a probleme with login file in views folder ,if you can remove it, remove it and also
verify if your composer is installed you can install it by
composer install
and also your System auth by
composer require laravel/ui "^2.0" --dev
this commande it works for laravel 7
but look for the new version in [new version][1]
and if you in a new version of laravel 7+ just use :
php artisan ui vue --auth
When I run this command: php artisan make:auth
I get an error:
command "make:auth" is not defined.
I have a problem in command with php artisan make:auth. How can I create a login in laravel
In Laravel 6 auth command has been removed and authentication scaffolding has been moved as separate package named laravel/ui
Here you can read about Laravel 6 and laravel/ui and also here you can read about laravel/ui in laravel documentation
Laravel 6.0 has removed this command:php artisan make:auth
Update for Laravel 6: The command to implement Auth is as follows:
composer require laravel/ui
php artisan ui vue --auth
This command will install a layout view, registration and login views, as well as routes for all authentication end-points. A HomeController will also be generated
NOTE: If your login page only shows plain HTML. And CSS is not loading properly then run this two command:
npm install
npm run dev
I want to make use of auth system which comes with the laravel package but the problem is when I make new laravel package using composer i.e composer create-project laravel/laravel project name --prefer-dist
it do not install those auth resources which includes (i.e. auth folder inside resources > views) and also I can't find the Services Folder inside app directory.
All other things are working fine except this authentication system.
What can be the possible problems? Please give me solution
I am working with MAMP.
Taylor Otwell has made it opt-in for Laravel 5.1
You need to run following command after installation
php artisan scaffold:auth
UPDATE
I think this has been answered here
You could also run the command php artisan make:auth in the root directory of you laravel project. I had the same problem and it worked for me.
The command php artisan scaffold:auth didn't work for me i don't know why.
it issued the error:
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "auth" is not defined.
Did you mean this?
make:auth
in Laravel 5.2 you just have to run this command "php artisan make:auth" and the auth folder will be created
Since laravel 6.* version make:auth is no longer supported, use ui:auth instead.
For deploying ui pack run
composer require laravel/ui --dev
then update composer.json :
composer update -W
and do the:
php artisan ui:auth
You need execute
php artisan make:auth
now if your style css and js are missing
You need load file .css and .js
1) execute in your project
npm install
2) then execute
npm run dev => now in folder /public now exist folder js and css
3) reload page