Questions tagged as 'artisan'

1
answer

Rollback in specific table Laravel 4

I am manipulating a MySQL database with Laravel 4. I want to know if there is any way to do a rollback on just one of the database tables. For example, my migration included the x, y, and z tables. I want to do a rollback only on the table and....
asked by 14.12.2015 / 12:57
1
answer

Send variable to Command from Controller Laravel

Today I call command through controler perfectly, but I'd like to send variables too. In controller , I call command like this: \Artisan::call('syncustomer:sav'); The name attribute of the current command: prote...
asked by 27.12.2016 / 15:38
3
answers

Routes accessible only to users logged in to Laravel?

Can anyone give me a hint on how to create routes that can be accessed only by users who are authenticated using Laravel ? For example , routes that relate to sharing, editing, deleting, and viewing publications are accessible only to...
asked by 24.08.2017 / 23:41
1
answer

Create / Modify table without deleting data Laravel Migrate

I have a question about laravel regarding the Migrates. I'm using Laravel 5.1 with SQLite database. When I run the command php artisan migrate or php artisan migrate:refresh , usually to add new tables or insert new fields to exi...
asked by 11.11.2016 / 19:45
1
answer

Is there any way to run Laravel on the command line in interactive mode?

In PHP, I know you can run it interactively on the command line, which is through the command php -a . Better still be using the library psysh . But when it comes to not just running simple tests, but running an application inte...
asked by 01.03.2016 / 13:26
1
answer

PHP Artisan command does not work

There was a demand at work where I had to get a Laravel 5 project from a client and start changing it. I had some problems at the time of putting it to run, but now it is going, except for the artisan command, which does not work even whe...
asked by 21.01.2016 / 19:03
1
answer

Make call to commands direct artisan of code [closed]

Hello! I am studying laravel, and would like to know if it is possible to call the artisan commands in the Controllers. Example: When the user clicks the button he executes an artisan command, a routine or something related.     
asked by 19.12.2016 / 13:03
1
answer

How do I run Artisan in a specific environment?

How can I do to run Artisan as a specific environment? Well when I squeeze php artisan tinker Generating an error because it is recognizing the configuration of the production database. But I need to run it in the "local" enviro...
asked by 23.03.2016 / 22:03
1
answer

Artisan Laravel not installed

I installed laravel with composer all working ... I use commands like laravel new projeto , but if I use a command like php artisan list it informs that the artisan command is not recognized ... How can I "install artisan"? Note:...
asked by 15.11.2015 / 01:08
0
answers

How to use Scheduler in laravel

I'm following the laravel documentation to create a Scheduler, but I'm trying hard. Could someone give a light? In this command: php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1 I understand that path-to-y...
asked by 13.12.2017 / 02:29