Skip to content

Tag: laravel

hasManyThrough laravel relation

I have three table below. hasManyThrough in Country::class model to get all products. I want products which are related to countries or one country: Answer The relation you’re describing best suits a many to many, which is usually written in Laravel as a belongsToMany on both sides. If you stick to Lara…

Ckeditor 5 file uploading adapter error

I’m using ckeditor classic 5, and i’m trying to upload images in it. I downloaded php lib Ckfinder3 php connector, set config. When i’m trying to load image i have a massage: Cannot upload file *filename*. Interesting moment, that they are fisically loaded on server: i can view it in directo…

Debugging Laravel application on VSCode

Has anyone successfully configured VSCode to debug Laravel-based website? After having followed numerous articles and tutorials, I have made it to the point where I can ask VSCode to “Listen to XDEBUG”, but I haven’t been able to do normal VS-style debugging where I could just hit F5 to laun…

Redirect to route in laravel not working

I am working on Laravel 5.4.36 application where my route label is defined in web.php as, but when I am trying to redirect from a control function to a route label using, Error: InvalidArgumentException Route [label] not defined. or Error: FatalErrorException Class ‘AppHttpControllersRedirect’ not…

How to store array in Laravel?

There are two mysql tables 1.seats (id,number), 2.reservedseats(id,seat_id,sceering_id). I show all the seats of a specific sceering as checkboxes in show.blade: {!!Form::model($screening,[‘method’=&…