Can’t create table in laravel “General error: 1 table has more than one primary key”

When using the following command php artisan migrate it returns the following error: General error: 1 table – has more than one primary key I have tried forcing primary key using $table->primary(‘id’); Note: the ID being referenced in the other table is also of data type bigIncrements Schema::create(‘stuff’, function (Blueprint $table) { $table->bigIncrements(‘id’); $table->string(‘class’); $table->timestamps();…

I having issues is storing image field data in jquery cloning with laravel5.8

I have name, email and image input fields in a view file. I use jquery cloning in the view file. How to store the image, name and email values in the database by using laravel 5.8 creating a method? This is my code: public function addMorePost(Request $request) { $request->validate([ ‘addmore.*.name’ => ‘required’, ‘addmore.*.qty’ => ‘required’,…

How can I get information about errors in laravel 6.0?

When I used Laravel 5.8 I could get information about errors like this : @if(count($errors > 0)) <ul class=”error-list” > @foreach($errors->all() as $error) <li class=”error-list-element”></li> @endforeach </ul> @endif It worked completly fine. Since Laravel 6.0 was released the code above results in error : Object of class Illuminate\Support\ViewErrorBag could not be converted to int So…