I am using Laravel jetstream teams and I would like to changed the default page (dashboard) when switching teams to a different page I have made (myteams), How
Please advise! During import of xlsx file I get formula and not result of the Formula. Changed config file excel.php to set 'calculate'=> true, on imports a
I'm having trouble updating session values using Inertia.js. The behavior I was expecting was that the redirect to 'Home' would happen only once. Once the sessi
I want to create product option system. I have a form look like this: [![Sample image][2]][2](source: resmim.net) Form's inputs are tag inputs. First input is o
this code is written in validation.js to validate the all laravel change password forms dynamically $.validator.addMethod("matchp", function(value, elem
I have Model Model1 where I want to update a particular column rank on saved. protected static function boot() { parent::boot(); static::saved(function
To get all records of the current day, I did $dt = Carbon::now(); $dataToday = Data::whereDay('created_at', $dt->day)->get(); To get records from this
I'm on a Mac OS Yosemite using Laravel 5.0. While in my local environment, I run php artisan migrate I keep getting : Access denied for user 'homestead'@'local
In the Laravel framework, I am trying to modify my columns using change() by migrations. Right now, I need to install... composer require doctrine/dbal I am
I have a problem with Sanctum and Postman that's related to this post: SPA Authentication Issues with Sanctum and Postman I followed everything from the Laravel
I am working with Laravel 5 and I am having issue getting ->wherePivot() to work on a Many-to-Many relationship. When I dd() the SQL it looks like Eloquent i
By using Maatwebsite/Laravel-Excel version 3.1 to import excel sheet, here I faced an issue date time column of the excel sheet returns unknown number. How to s
When I run composer update I receive some wired output. Here is my composer.json look like. { "name": "laravel/laravel", "description": "The Laravel
Here is my array from hasMany relationship in Laravel framework. $array = ['php','css','hrml']; How can I display as below using implode function. (code in m
I want to make query in Laravel Eloquent like here its raw MySQL query SELECT * from exampleTbl where id in(1,2,3,4) I have tried this in Laravel Eloquent
I want to rename the foreign key in Laravel. This is how, I have created it: Schema::create('holidays', function (Blueprint $table) { $table->increments(
I created a make:migration when I try to run the migration I get the following error No such file or directory (SQL: select * from information_schema.tabl
I've followed this article to add multi language into my app and it's working fine, the only issue i need to solve is that languages slug won't add to the url.
so i wanted to display the image not the image name in my views. i got this in my views <img src="{{$post->image}}" /> what i want is to display t
I'm trying to sort multiple records for a model based on a field and store their ranks in DB. Like below: $instances = Model::orderBy('field')->get(); $ran