I m trying to do some dependent dropdown that shows me information from the state,streets and parishes from other countries , but the dropdown only shows the states not the other things, i would like …
Tag: laravel
User variables of a function, in another function
I have a Laravel app, which the following PHP code: public function handle() { $post_item->category_id = $source->category_id; $…
PHP Notice: Array to string conversion; Database Factories
I have a talent model which can have many educations which I want to populate using data factories. But populating using artisan tinker the education data cause “Array to string conversion”. From …
Laravel 6.x – hasMany , belongsTo, when are the database queries for these executed?
I am a bit curious about the performance of my app. Therefore I just want to know that when the queries for the hasMany and belongsTo are executed? Here is the relevant sample code for example: …
Undefined variable in laravel blade partial view error
I am getting the following error when loading a page: Undefined variable: userIds However, the variavle is reaching the partial given when I try {{ isset($userIds) ? ‘Yes’ : ‘No’ }} it returns ‘Yes’ …
Multiple selects in laravel 6.0
0, I have this code that works perfectly $data = DB::table(‘incidencias’) ->join(‘clientes_incid’, ‘clientes_incid.rif’, ‘=’, ‘incidencias.rif’) ->select(DB::raw(‘count(*) as gold, …
Laravel 6 user auth page not working properly
Today I installed laravel 6.x version for a new project. I have PHP 7.3 in my system so laravel 6 was successfully installed. Then I run this command to set the Auth UI for VueJS. along with this command: But when I checked my login page, it was just an html skeleton. I checked over the internet and found a
Base table or view not found in laravel 6 when using validator
I belong to the reader gang and this happens to be my first question on SO. Pls, pardon me for mistake I was trying to validate request in register function. Here is the code. public function …
Trigger onUpdate action in OctoberCMS
I have a form in OctoberCMS backend and I want to make a javascript trigger that will be fired when the user save the form so I can manipulate the form fields. The official documentations of …
laravel server not responding to requests unless restarting the CLI but works fine in www folder
I’m running a Laravel app with php artisan serve. When I start it from the CLI, it works the first time fine. But when refreshing the URL, it stops responding and the link becomes pending in a loop in …