Most voted "artisan" questions
Artisan is a command-line tool included with Laravel. Use this tag for questions related to using and creating commands using Artisan
Learn more…31 questions
Sort by count of
- 
		5 votes1 answer395 viewsRollback in specific table Laravel 4I am manipulating a Mysql database with Laravel 4. I want to know if there is any way to do a rollback in just one of the database tables. For example, my Migration included the tables x, y and z. I… 
- 
		3 votes1 answer144 viewsSend Command variable from Laravel ControllerToday I call a command for controler perfectly, but I would like to send variables as well. In controller, call the command that way: \Artisan::call('syncustomer:sav'); The name attribute of the… 
- 
		3 votes3 answers2910 viewsRoutes accessible only to users logged in to Laravel?Can someone give me a hint on how to create routes that can be accessed only by users who are authenticated, using the Laravel? For example, routes that refer to sharing, editing, deleting and… 
- 
		2 votes2 answers914 viewsArtisan Laravel not installedI installed the Laravel with Composer all working ... I use commands like laravel new projeto, but I use a command like php artisan list he informs that the Artisan command is not recognized... How… 
- 
		2 votes1 answer353 viewsIs there any way to run Laravel on the command line in interactive mode?In PHP, I know it is possible to rotate it interactively on the command line, which is via the command php -a. Even better would be using the library psysh. But when it comes to not just running… 
- 
		2 votes1 answer8769 viewsCreate/Modify table without deleting data Laravel MigrateI have a question about the Migrates. I am using Laravel 5.1 with Sqlite database. When I turn the remote php artisan migrate or php artisan migrate:refresh, generally to add new tables or insert… 
- 
		2 votes3 answers1024 viewsERROR: No application Encryption key has been specifiedGood morning, I’m trying to download a template on this link: https://itsolutionstuff.com/post/php-laravel-57-create-admin-panel-exampleexample.html But at the time of the command : php Artisan… 
- 
		1 votes1 answer2091 viewsPHP Artisan command does not workThere was a demand in the job where I had to take an Laravel 5 project from a client and start changing it. I had some problems at the time to put to run, but now it is going, except for the command… 
- 
		1 votes1 answer513 viewsHow do I run Artisan in a specific environment?How can I perform the Artisan as a specific environment? 'Cause when I spin php artisan tinker It is generating an error because it is recognizing the configuration of the production database. But I… 
- 
		1 votes0 answers514 viewsAny command with Artisan is not workingI went to try to install a dependency: https://github.com/barryvdh/laravel-dompdf . But at the end of the installation, an error message appeared: Installation failed, reverting ./composer.json to… 
- 
		1 votes1 answer65 viewsCall Artisan commands directly from the codeHello! I am studying Arabic, and I would like to know if it is possible to call the Artisan commands in the Controllers. Example: When the user clicks on the button he executes an Artisan command, a… 
- 
		1 votes0 answers467 viewsArtisan server in Laravel with php 5.6?I created a project with Laravel 5.0 framework by Composer, to run the project using the command php Artisan serves, however, I have found that the php version used on this server is 7, I have… 
- 
		1 votes0 answers39 viewsConnection error in Composer install?I’m having trouble turning the remote composer install no Laravel. I am very beginner in the use of it yet, so I have no idea what could generate this error: > php artisan clear-compiled Erro na… 
- 
		1 votes0 answers168 viewsHow to use Scheduler in the LaravelI am following the documentation of the Standard to create a Scheduler, but I’m having difficulty. Someone could give a light? In that command: php /path-to-your-project/artisan schedule:run… 
- 
		1 votes1 answer2671 views
- 
		1 votes1 answer14 viewsHow to create confirms Artisan Command Laravel recursively?Want to increment one more? (yes/no) [no]: yes counter = 1 Want to increment one more? (yes/no) [no]: yes counter = 2 Want to increment one more? (yes/no) [no]: in the Completed search.… 
- 
		0 votes1 answer1083 viewsError while running Composer installI’m cloning a Github repository Gitscrum and when I will execute the command Composer Install, it returns me the following error: C: www Gitscrum>Composer install [32mLoading Composer… 
- 
		0 votes1 answer693 viewsArtisan Command Calling ControllerI did a job on a Controller and created a Command in the Artisan to run this function. Follows: Controller <?php namespace App\Http\Controllers; use App\Http\Requests; use App\EmpresaRating; use… 
- 
		0 votes1 answer395 viewsLinux commands through LaravelI’m creating some custom commands in Laravel as per the documentation: https://laravel.com/docs/5.4/artisan ex: php artisan gestao:config This command allows me to automatically configure some… 
- 
		0 votes0 answers512 viewsChange sent email templade to reset password in Laravel 5.3I created the authentication module for my application with php artisan make:auth and the password reset method is created automatically by him, ta everything running blz... what happens is that I… 
- 
		0 votes1 answer79 viewsLaravel 5.5 Queued?I’m starting in Laravel, and installed 5.5 and after exceeding this command php artisan make:command MyCommand --queued The error is as follows The "-queued" option does not exist. Reading a little… 
- 
		0 votes1 answer353 viewsAuthentication does not work after running make:authI execute the command: SmartFlex> php artisan migrate within my project and it is finished correctly. The options of login and registration are available at view, but while trying to access the… 
- 
		0 votes2 answers324 viewsLaravel 5.4: Error creating table - Unexpected '(', expecting Identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'When executing the command php Artisan migrate to create the table in the database, the error appears below: [Symfony\Component\Debug\Exception\FatalThrowableError] Parse error: syntax error,… 
- 
		0 votes1 answer182 viewsRun php Artisan in a different directoryHow to execute the command: php artisan ... In a different directory so that the generated files stay in the folder I set 
- 
		0 votes1 answer176 viewsArtisan Laravel linux scriptI hired a shared server, which performs scheduled tasks (CRON TABLE) via linux scripts (.sh). How to run a command php Artisan (php artisan enviar:emaildiario) within that linux script? UOL server:… 
- 
		0 votes1 answer66 viewsRun Artisan within linux shell scriptHow do I shell a linux script to run an Artisan command from Laravel? ex: php artisan migrate but create a script to run this command 
- 
		0 votes0 answers62 viewsCurl does not work with Artisan serve?Currently my friend is having the same problems I had when trying to use Curl to consume the API, serving the application with php Artisan serves. Is there a limitation that does not allow the use… 
- 
		-1 votes1 answer420 viewsError when typing php Artisan migrate command in windows terminalError: after typing the command php artisan migrate in the Windows: Microsoft Windows [version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C: Users x538238>cd C: xampp htdocs… 
- 
		-1 votes1 answer899 viewsLARAVEL - Error when connecting MYSQL with LARADOCK in WorkspaceWhen I try to run the command on the laradock’s Workspace php artisan migrate the following error occurs: Illuminate\Database\QueryException : SQLSTATE[HY000] [2054] The server requested… 
- 
		-1 votes0 answers7 viewsCould not find SQL driverI give php Artisan serves and open localhost and return me: Illuminate Database Queryexception could not find driver (SQL: select * from sessions where id = 9MOM8bvIrofrPuP9POR5BpWIfDXFXkk0fd8jPDHT… 
- 
		-1 votes0 answers53 viewsError php Artisan serves "Failed Opening required"PHP Warning: require(C:\Users\Tatiana\Desktop\JME\new-jmepecas-master/vendor/autoload.php): Failed to open stream: No such file or directory in…