I would like to know if is it possible to work in a model using query builder to make a join between 4 tables, I don't know how to use eloquent with 4 tables th
Here is my controller: <?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class RegisterControlle
I have some JavaScript variables that I output on a rating scale as shown below. I now want to achieve Laravel's localization therefore translate the variables
I am new to laravel and php. I have this code in one of my controllers: $group_by_precedence = array("true", "false"); And this code in the view: @foreach ($gr
I created a migration file using php artisan make:migration create_todoapps_table. The migration file was created with the table name as to_do_apps (Schem
I got this error after copying code from a tutorial. It's deprecated and I tried resolving it: Array and string offset access syntax with curly braces is no lo
In Laravel I have got this error, while inserting a record in my MongoDB database. Call to a member function prepare() on null namespace App\Http\Controllers;
i have route to get detail data.. but it turns out missing required parameter, i'm using slug as my parameter Here's my route: Route::group([ 'prefix' =>
Access to XMLHttpRequest at 'http://localhost:8000/api/objectives' from origin 'http://localhost:4200' has been blocked by CORS policy: The 'Access-Control-Allo
I have a parent table in laravel, I am able to access the data of its child in vuejs i.e the parent table visits and its child is messages so to access the mess
I'm working on a laravel 9 project that uses vue 3. For each form input has been made field components.Everything works fine except registration checkbox (Accep
I am trying to set option selected where option value is 1. But I am getting in trouble when using v-select from vuejs. This is how I am trying to do - <v-
snappy.php get this code 'pdf' => [ 'enabled' => true, 'binary' => env('"C:\Program Files\wkhtmltox\bin\wkhtmltopdf-amd64.exe"'), 'timeout
When trying to install composer in laravel project get this error. Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover
I'm looking for the best solution to read emails and get attachments from Office 365 mailbox to save them on my Laravel application. I've tried Laravel IMAP htt
I use lighthouse package for making my graphql schema (https://github.com/nuwave/lighthouse) But how to get data from @belongsToMany relationship that is stored
i use mutator in my model to encrypt id: public function getIdAttribute($value) { return encrypt($value); } but I want the default value to be the original
How to retrieve the 'logged in' user from a Sanctum token. For logging in I have the following method public function login(Request $request) { if (Auth::at
How to retrieve the 'logged in' user from a Sanctum token. For logging in I have the following method public function login(Request $request) { if (Auth::at
I want to return json wit all the data with a timestamp datatype turned into ISO 8601 automatically. This should be easily achievable after Laravel 7 but I stil