Skip to content

Laravel Method notify does not exist

I am trying to notify user if a new form is inserted to database, but I get this error: This is the notification class And in my controller I am doing this: Been following This tutorial, but still to no avail. I have Notifiable in the user model. What else can be done? I am losing my mind what causes

How to remove an item from session array in laravel

Here is the problem I have a session session(‘products’) this is actually an array that contains id session(‘products’) array:4 [▼ 0 => “1” 1 => “2” 2 => “4” 3 => “1” ] Now I want to …

RabbitMQ PRECONDITION_FAILED – unknown delivery tag

We have a PHP app that forwards messages from RabbitMQ to connected devices down a WebSocket connection (PHP AMQP pecl extension v1.7.1 & RabbitMQ 3.6.6). Messages are consumed from an array of queues (1 per websocket connection), and are acknowledged by the consumer when we receive confirmation over the …

HTML select option selected does not work

I want to set the current date by default but it works only on year’s select (the last one). I wouldn’t like to use javascript in this case. Just html and php. I have already tried “selected=’…

Laravel + Crontab not working

I am trying to set up scheduler in Laravel. Here is my crontab which I debugged and works fine – atleast with my cron job * * * * * /bin/echo “foobar” >> /my_path/example.txt I don’t know if …

Laravel: Layouts.master not found

I built the demosite in Laravel, but I got the following error: ErrorException in FileViewFinder.php line 137: View [layouts.master] not found.(View: /var/www/html/project/laravel/laravel/resources/views/page.blade.php) The master.blade.php is next to the page.blade.php, both are in resources/views master.bla…