Laravel 5.2 restoring php artisan make:auth changes. - laravel-5

I have generated login using php artisan make:auth command in laravel 5.2. I do not need it any more. I want to remove this login/logout/signup and other files generated by this command. HOW ?

They are located in \resources\views\Auth\ , also there is a route you should remove it from your Route.php
Route::auth();

Related

I have removed a route from web.php and this route still working in laravel 5

I am working in laravel 5 an existing project downloaded from cpanel. I want to make some changes but my changes do not have any affect. I, at the end remove the route but route still working. There is no any extra route file binding in routeServiceProvider not required or included in web.php. I am wondering how it could be happened?
I have tried:
php aritsan cache:clear
php artisan config:clear
can somebody please tell me what could be the issue ?
please run the following:
php artisan route:cache
After running this command, your cached routes file will be loaded on every request.
Please, run the following command:
php artisan route:clear

Laravel routes not updating on server

I have added a Laravel route to the web.php file and everything works fine locally but on deployment, it says that page is not found. The thing is that the newly added routes seem to be in web.php on the server as well but php artisan route:list does not display these new routes. Most of the solutions here recommend to run php artisan route:clear and then php artisan route:cache but there is not any routes.php file in /bootstrap/cache/ directory so that routes were not caching anyways.
Dont run route:cache
just clear and it will auto get it cached from your routes
php artisan route:clear
php artisan config:clear

How to use Laravel custom package, called laravel-users?

I made a new Laravel 5.8 project and run the
php artisan make:auth
and finished DataBase setup/connection. Now I followed the instructions from "https://github.com/jeremykenedy/laravel-users". After publishing it (4 in instructions), I run "php artisan serve" but it still shows the standard Laravel Welcome with login/register option from Auth. What more files do I need to edit/copy to get the "laravel-users" running/showing?
You've already run the make:auth command. The standard views are already in place (check resources/views/auth).
Either manually copy the correct views and assets from the Laravel-Users package, or discard all the auth scaffolding and run the make:auth command again with the package already installed.

Route voyager posts index not defined

I just have installed voyager at laravel 5.4 and tables migrated but at the end it shows following error
Route [voyager.posts.index] not defined
As mentioned by #Muhammad Muazzam
1- Run php artisan voyager:install
However, only this didn't work for me, I needed to also
2- Clear php catch: php artisan optimize:clear
Re runing php artisan voyager:install will resolve the issue.

Lumen php artisan config:cache not found

I'm trying out the PHP micro Framework Lumen (from laravel).
When I set up Lumen and I try to use the php artisan config:cache command like in Laravel, I get this error :
[InvalidArgumentException]
There are no commands defined in the "config" namespace.
So I have problem when I try to deploy the files to server, so I have to change .env file to change the database username and password.
This makes me think config is not available in artisan
How can I add it to artisan ?
Yes, you can not use the php artisan config:cache with your Lumen project, because it is not available out of the box.
You can add it by adding this package (orumad/lumen-config-cache) to your project:
composer require orumad/lumen-config-cache
In lumen you have to add this configuration in bootstrap/app.php file
$app->configure('custom_config_file_name');
#example
$app->configure('custom_emails');
Then you can access like below:
config('filename.key_name');
#example
config('constants.email');
Lumen no need to config:cache.
You do not need to do anything after change ‍‍.env

Resources