Category "laravel"

Laravel Form Request custom error message for date_format rule

I want to add a custom message on date_format validation in laravel but conldn't find any thing.How i can add a custom message I have used this $messages = [ 'p

How to create laravel storage symbolic link for production or sub domain system?

When I worked on laravel local development server php artisan storage:link works fine for me. But when I transfer my site to production server then I saw my pub

Laravel Jetsream Profile page not loading on fresh install

I have performed a fresh install of Laravel Jetstream. Upon completing all the steps outlined in the Jetstream (Inertia) set up process, the project starts up f

Laravel Factory not calling callback 'afterCreating'

I'm trying to modify models after creating them with Factory. I have defined configure() method and within it what I want changed within the model. However, Lar

Issue with laravel eloquent model property

I'm trying to print {{$day->date}} in a view. Instead of full date YYYY-MM-DD the property only returns year YYYY. Can anyone explain me why it is working li

500 (Internal Server Error) with Laravel & Docker [duplicate]

I create Laravel PHP application in Docker. First I setup Laravel app using laravel new laravelDockerApp it creates successfully.I verify

Using Repository in edit method Repository is null

With laravel 7 /livewire app I make crud using Repository and I got listing of data ok, In mount event I assign protected var $FacilityRepository , which works

Laravel $request->expectsJson()

I am doing an Ajax login for my Laravel application. I am using Angular: $http({ method: 'POST', url: '/admin/login', headers: { 'Content-Type': '

How to make a foreign key not using primary key

I have a migration on Laravel for table pasien like this : public function up() { Schema::create('pasien', function (Blueprint $table) { $table->

Too few arguments to function App\Http\Controllers\DataPegawaiController::storeDetail(), 1 passed in

i have problem like this. After insert new User to Pegawais table, i want to redirect to another view with user id parameter to define EducationHistory & Wo

How to disable laravel 5.2 password bcrypt

I want to disable the laravel password bcrypt when I try to log-in like this Auth::guard('client')->attempt( 'id' => $request['id'], 'password' => $re

How to fix `There is currently no session available` after an API request call to Laravel 9

After Laravel project upgrade to PHP8 and laravel 9 on the all API endpoints started getting: There is currently no session available. Upgrade was made from lar

The post method is not supported for this route

I'm new to laravel and I want to submit a form which have three attachments plus some arrays but when I click submit button laravel says "The POST method

Take back to login page after successfully reset his/her password in laravel 5.4

I want to redirect to login page whenever a user successfully reset his/her password in laravel 5.4. Currently it redirects to dashboard page after successfull

Netbeans customize laravel blade commands color

I have been working on a Laravel project and was able to implement the code completion from the IDE Helper. What I am trying to find is a way to customize the c

How to read laravel_session cookies saved in cookie memory of browser in client side?

I have an laravel and angular based application, I would like to read cookies from client to server side, But i can't read it. So can any one tell me how could

Call to a member function givePermissionTo() on null

I'm trying to learn Spatie Laravel Permission Package. When trying to insert data to models has permissions table it gives the below error in postman. I don't k

postgresql uuid-ossp.control file missing in extention folder. I have installed postgres 9.6 on windows 10

I am getting the below error on running this query CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; SQLSTATE[58P01]: Undefined file: 7 ERROR: could not open extensi

How to insert data in the enum field?

I've an enum field in my migration. The code is here: Schema::create('clients', function (Blueprint $table) { $table->increments('id'); $ta

Why I get this error laravel-worker: ERROR (no such group)

I followed the official Laravel doc to start queue in the background using supervisor in Centos 7. But whene I run this command sudo supervisorctl start larave