Skip to content

Tag: laravel

Laravel (How do I add data to database)

Here’s my code that shows projects assigned to a user. HomeController home.blade.php ProjectController that show issues within the project. route: issues.blade.php I made a button in the issues page that shows a modal that has a form for adding issues for the selected project. Can you help me with this?…

Laravel Blade Component – UTF-8 Encoding issue

I’m currently working on an application with Laravel 8 version. I have build a component named input-group which cause encoding issues that i don’t understand. The code of the component look like this : Here is the data that I inject into the value attributes => Inspecteur de l’Education …

Issue in integrating php-redisearch with laravel 8

I have installed the plugin MacFJA/php-redisearch using the following command composer require macfja/redisearch Issue: Complete code: Can someone share why the issue is thrown? Answer As @NicoHaase said (and here also), MacFJARediSearchRedisClientClientFacade is not available in versions 1.x, and as for now,…

Laravel Eloquent the same queries

I’ve faced this question on the interview recently. How many objects will be created? How many db queries will be executed? I’ll be thankful so much for any detailed explanation Answer In Either one of the code above, the query will just be 1 $a = Flight::find(1); is same as Since $a & $b are …