laravel-artisan Questions

3

When I usually run my commands I do it from /var/www/project/html/current/ and it looks like this php artisan import:myData. This works great. But I can't get it to work while running it as a cron...
Earlap asked 17/4, 2018 at 16:43

10

I'm working on an e-commerce project on Laravel 5.8, but since I accidently ran "laravel new" command on the project's folder I get this error when I'm trying to launch the project on a local serve...
Gitt asked 30/8, 2019 at 12:30

7

I'm working with Laravel, suddenly when I try to run php artisan serve in my command prompt, it's displaying the error message: In Container.php line 729: Class request does not exist I have ...
Christiniachristis asked 15/6, 2018 at 6:0

33

Solved

Using Mac OS X and Homestead 2.2.1 with Laravel 5.2. In terminal (within homestead in my project folder) I can do php artisan to see all the available commands. When I try to run php artisan migra...
Fi asked 14/2, 2016 at 16:39

14

Solved

What is the artisan command for clearing all session data in Laravel, I'm looking for something like: $ php artisan session:clear But apparently, it does not exist. How would I clear it from the c...
Breadthways asked 7/6, 2018 at 2:59

6

Laravel 5.4 app. CACHE_DRIVER is set to file and QUEUE_DRIVER is set to sync in .env. When I run php artisan cache:clear It says Cache cleared successfully yet I still have 236K of files in my sto...
Lawn asked 7/8, 2017 at 21:12

4

Solved

I'm using Laravel 5.5 with laravel-modules v2. It's easy to generate migrations in a custom directory (inside a module, specifically): php artisan make:migration create_users_table --path=Modules...
Chough asked 12/1, 2018 at 19:14

3

Solved

Usually when I want to clear app cache I run php artisan cache:clear but that removes all cache entries. What I'm hoping to do is forget a single element from command line by specifying the key. Fo...
Diatropism asked 20/5, 2021 at 1:15

5

Solved

Hi I've just tried and to install Laravel 8 with sail and I've run into a problem What I've done is to first run the curl one-liner from laravel's own page curl -s https://laravel.build/sail-test |...
Watersick asked 12/12, 2020 at 17:9

9

Solved

I deleted the migrations table from a Laravel 5.4 database named laravel. When I run php artisan migrate:install, I get this error: [Illuminate\Database\QueryException] SQLSTATE[HY000] [2002] No su...
Sentence asked 25/9, 2017 at 14:19

3

Solved

How can I write a command on two lines with Laravel Artisan Tinker ? User::whereEmail('[email protected]') ->get() PHP Parse error: Syntax error, unexpected T_OBJECT_OPERATOR on line 1
Hedden asked 30/3, 2022 at 5:25

10

Solved

I am new to Laravel and I'm following Laravel Documentations as well as few Tutorial Videos. However, I am running this php artisan migrate code in my local CMD prompt and it's not creating Databas...
Chatterer asked 8/4, 2016 at 6:24

7

Solved

In the shell I can create a database migration (for example) like so: ./artisan migrate:make --table="mytable" mymigration Using Artisan::call() I can't work out how to pass a non-argument param...
Joslyn asked 2/10, 2014 at 11:1

11

after installing a new laravel app 5.7 and trying to migrate I get this error: Illuminate\Database\QueryException : SQLSTATE[HY000] [2054] The server requested authentication method unknown to t...
Supersonics asked 4/12, 2018 at 6:59

15

Solved

I'm having a problem starting my Laravel installation. Whenever I type in the terminal php artisan serve, I get this error: Failed to listen on localhost:8000 (reason:une tentative d'access un α s...
Metempirics asked 12/1, 2015 at 10:44

23

Solved

I have an orders table and a have a sell_shipping_labels which references orders.id as a foreign. However when I run the Laravel migration I get the dreaded error code: [Illuminate\Database\Quer...
Urology asked 9/12, 2017 at 13:9

8

I have the following error upon doing: php artisan migrate Error: Illuminate\Database\QueryException : SQLSTATE[HY000] [2054] The server requested authenti cation method unknown to the client...
Lippmann asked 9/7, 2018 at 15:33

10

I'm try use a sqlite database in my laravel project, in local environment for dev (Windows 8.1 with AMMPS), but when I try run a migrate:instal command, this error apeear: [PDOException] SQLSTATE...
Daybook asked 21/5, 2015 at 19:20

5

Solved

I have the following function: protected function schedule(Schedule $schedule) { $schedule->command('email:users')->everyMinute(); } when I run the command artisan schedule:run it se...
Unassailable asked 30/6, 2017 at 20:10

2

Solved

I am building a Laravel site, and want to test it on other devices as I build it (phone, ipad etc). As I understand it, the way to do this is to run php artisan serve --host=0.0.0.0. My question...
Seismograph asked 1/6, 2018 at 8:55

15

Solved

When I run php artisan db:seed I am getting the following error: [ReflectionException] Class SongsTableSeeder does not exist What is going on? My DatabaseSeeder class: <?php use Illuminat...
Entertainment asked 1/10, 2014 at 14:5

21

Solved

I recently setup a Laravel Queue system. The basics are a cronjob calls a command which adds jobs to a queue and calls a second command which sends an email. The system works when I ssh into my s...
Fernanda asked 20/2, 2015 at 6:37

3

Solved

I have been using laravel for multiple projects already, however for some reason my new laravel project does not have the server.php file. Reinstalling composer and / or recreating the project doe...
Frigidaire asked 11/5, 2018 at 0:35

25

When trying to create a new laravel project, The following error appears on the CLI: Could not open input file: artisan Script php artisan clear-compiled handling the post-install-cmd event return...
Protect asked 4/10, 2014 at 13:29

9

Solved

I'm trying to run the following artisan command: php artisan storage:link I get this error: [ErrorException] symlink(): Protocol error Can you help me to solve this. This is my setup: Wind...
Alcala asked 14/9, 2016 at 17:41

© 2022 - 2025 — McMap. All rights reserved.