Laravel, Integrity constraint violation

I pased two hours tryin fix this but no succes! I’m trying to save a post, caption and it’s image, and uder_id, Here is the migrations file: public function up() { Schema::create(‘posts’, function (Blueprint $table) { $table->bigIncrements(‘id’); $table->string(‘user_id’); $table->unsignedBigInteger(‘caption’); $table->string(‘image’); $table->timestamps(); }); } public function store() { $data= \request()->validate ([ ‘caption’=>’required’, ‘image’=>”, ]); auth()->user()->posts()->create($data); dd(\request()->all());…

Details

How to use a submit input button as a link to another webpage in the current tab?

I want to use an <input type=”submit”> button as a link to open another webpage in the current tab. I am using the attribute multiple but I want to display the select menu like this Here is my HTML: <form id=”link”> <select multiple=”multiple” > <option value=”” disabled selected hidden>Моля изберете</option> <option value=”volvo”>Кардиолог</option> <option value=”gastro.html” target=”_blank”>Гастроентеролог</option>…

Details