Custom unique rule

In my system, the username can appear twice in the table, but only if its department (another table) is different. How can I check that there are no duplicates?...

Laravel 5 Validation Request, how to handle validation on update?

First of all I love the way that validation is going through, can now easily use public function authorize(Authenticator $auth) { return $auth->use...
Requests
71
3318

Is it possible to change value in _variables.scss file depending on request parameters?

Hello! If there is a way in laravel 5.7 app /blade/scssproject to change value in resources/sass/_variables.scss file depending on request parameters? That could be...

Docker series

We have already reviewed vagrant for several times, I get hearing about docker and kubernetes. I would like to ask for a series for using docker and specifically kubernetes...
Requests
82
420

require_if other field contains some value

Hello, I'm using Request to validate input, I want to make field required whether another field contains some value or not Im doing like this...

Artisan websocket client

I want to build a PHP websocket client as an artisan command. You think that should work or has any experience with it? I want to run it as a service....

Guzzle + Twitter API (Upload Image)

I'm interacting with Twitter API endpoints via GuzzleHttp. No issues with first request (INIT) which returns media_credentials for subsequent file upload. When I att...

Why do I get random "SSL certificate problem" error

I'm aware that the similar questions were asked but mine is differentiating and I could not find a matching answer. The problem occurs when I'm trying to register us...

Request to api from axios (cross domain) (CORS) error

Hello. I'm try to fetch data from bank api with AXIOS and heve an error. I suffer 3 days with this error. I already read alot about CORS but didn't find an answer....
Requests
5
4238

Download pdf file using Guzzle POST request

How can i download a pdf file from a post request using Guzzle? I need to send some params to a url and if all it's ok i receive a pdf file. I am using laravel 5.7 f...

Modify request data before being evaluated

Is there a way to modify the request data before being evaluated? I'm working on a custom request, and I need to transform a JSON string into a PHP array by using json_deco...

Controller Won't Return Defined Status Codes

Hi, I am stuck with a major issue. I have being developing a application for a while. I had set some responses to send the 422 response error code which was initiall...

Existing route returns 404

I've been debugging an apparently easy problem, but I can't find out what's happening and it's driving me crazy. I have this route set up: Route::grou...

Illuminate\Validation\ValidationException : The given data was invalid.

Hello, I have this problem in file SchoolRequest.php <?php namespace App\Http\Requests\School; use Illuminate\Foundation\Http\FormRequest; class School...

Please answer for it

I am accessing project through ip address from the server in my local system. if internet is available i can access my project through server ip address. if...

Question

How to give print without print preview in laravel?...

Database sync

How to sync the local database to the server database automatically for every 30 minutes in laravel?Please can anyone answer?...

Access the files uploaded to storage\app\subfolder\filename.ext

I am trying to store uploaded files to storage\app folder with subfolder created for each upload. Below is the code for uploading files. $client=Client::find...
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels