I accidentally added a wrong database url to my Laravel config now every time I try doing anything with artisan I get this error I already removed that line but now I can’t clear the cache for the config and every time I do anything with artisan I get the same error even when I just run php artisan help
Tag: laravel-artisan
Unable to run artisan command via cron in localhost [Laravel 8] [Solved] [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
joedixon/laravel-translation not updating
I have just installed a Joedixon/Laravel-translation package in Laravel version 8. It shows the words but when I want to update it will not work. I did everything that was said in the documentation and also I’ve read this article about it but it also didn’t work. https://github.com/joedixon/laravel-translation/issues/82 NOTES: 1: I changed the driver to database. 2: adding a new
laravel 8 migration error: Unknown column ‘batch’ in ‘order clause’ (SQL: select `migration` from `migrations` order by `batch` asc, `migration` asc)
[SOLVED] i new to Laravel and PHP. i tried to migrate my own migrations but i can’t. this my laravel and php information: my php info PHP 8.0.3 (cli) (built: Mar 4 2021 05:33:14) ( NTS ) Composer version 2.0.11 2021-02-24 Laravel 8.x mysql Server version: 10.5.9-MariaDB Arch Linux my OS info uname: Linux ali 5.4.105-1-MANJARO #1 SMP PREEMPT 2021
Call php artisan custom:command with an argument at the end without specifying the ones before
Is there any way that if I have a command of this kind: To call it without specifying arg4, but with arg5? Something like: Of course, if I do it like above arg5_val will be interpreted like arg4_val and arg5 will be ignored. I hope my question is clear and it was not answered already. Did not even have a
Laravel RouteServiceProvider map function not called
I’m using the map function in the RouteServiceProvider to manipulate some routes before are being processed any further. When I run on my local machine everything runs fine but on the production server for some reason non of the map functions are being called. To make sure the bug was not for some reason in my own code I used
Laravel: how to cache route for 5 minutes?
I want to cache one route in Laravel project and clear it for every 5 minutes. I searched a bunch of articles but only found artisan route:cache command and I have no idea if it possible to configure caching time. So, this is my routes routes/web.php: And every time when user loads rating page the getLeaders() function initiates DB request
php artisan serve command display error message
I am using php 7.3.2 on window 7. When I try to run php artisan serve, it shows this error on the webpage: Whoops, looks like something went wrong. Is it related to the message that I received …
Artisan command notification to all users gives BadMethodCallException
How can I create an artisan command to send a database notification to all users in the system containing information of how long they have been in the system for? My SendEmails Command looks like the following: Then I created the notifications table, migrated and the code is the below: User.php: When I run the artisan command “php artisan send:emails”
Create a process to dynamically listen, work or monitor queues in laravel
I’m dead stuck in a problem where I have to dynamically create queues and those queues should start to listen to all the active jobs assigned to them. “Using general queue” is not feasible in my case …