New to Laravel What is the difference between foreignId() and unsignedBigInteger() while linking tables $table->unsignedBigInteger(‘user_id’); $table->foreignId(‘user_id’); I’ve tried both …
Tag: laravel
Laravel Yajra Datatables [object Object],[object Object] Error
Recording data in array format to database workers column. I would then return this data in the appropriate JSON format. My problem is just getting the spname values from the nested array in the …
POST 404 not found on submit Vue js and Laravel?
I’m new to Vue js. I’m trying to store data. I’m loading in welcome.blade.php:
<router-link …
Check user’s each request after user logged into the with conditions in Laravel 6.18
Ok let me explain my requirement shortly. I have a portal where suppliers can register and add their content to our site. Usually, registration has 5 steps where after the supplier completes the first …
How to save csv file in /public folder using laravel?
I am trying to save a csv file and download it. To download I used the following code. $export = implode(“,”,$header).”n”; foreach($data as $key=>$val) { $export .= implode(“,”,$val).”n”; }…
Is it risky to choose most recent versions of Laravel over LTS versions? [closed]
I am planning to create a web project by using the Laravel framework. I have worked on Laravel 5.1(LTS) and later haven’t learned further versions like 6.x and 7.x. For the new project, I need to use …
Laravel – API return fields as string while they are int in the DB
I have the following code: In the DB, most of the fields of the DailyMission / userProgress models are integers – but the API return them as string. for example: instead of: Any idea what can cause this issue? Version: Answer In your model, you should define the field as an integer in the $cast attribut…
How to display my JSON response in a table using Laravel?
I’m trying to create Live search in Laravel using AJAX with one of my tables. I watched a YouTube video on this and I got to around 18:00 min on the 21 minute video. At this point there was no LIVE …
login page redirect to blank page afer authentication in laravel 6
my login page redirect me to blank page with url:http://127.0.0.1:8000/login instead of the dashboard. this is my loginController <?php namespace AppHttpControllers; use IlluminateHttp…
Testing method which need log in
I want to testing some method like user (method need log in user). $user = User::find(1); $response = $this->actingAs($user)->json(‘POST’, ‘/store/post’, [ ‘title’ => ‘Hello …