python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Why do we we pass $request to toArray() if we dont use it?
I am new to Laravel. I am currently building a resource. I was just wondering what is the purpose of passing in the $request object if we use the $this variable when using resources. Below is an examp...
json2021
Votes: 0
Answers: 0
How to validate a post request without a specific attribute to validate
I have a time tracking application where every time that a new Time Entry is about to be added, I must first verify that all the previous time entries have been closed (meaning that an ending date has...
coderdonezo
Votes: 0
Answers: 2
Laravel - How to override the request class so that a script is executed whenever an http request is made to the backend?
I have managed this by extending the Form request like this:
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use App\Http\Controllers\Root\RootController;
use App\H...
Sirkow
Votes: 0
Answers: 1
How pass '?filter[DBfieldname]=value&[DBfieldname2]=value2' in url in Laravel 8
I need for filtering data based on getting requests,
Current Route
Route::get('datasearch', [Mycontroller::class, 'MyFunction'])->name('this.is.route.name');
Current Forntend form
<form met...
aGreenCoder
Votes: 0
Answers: 3