skip to Main Content

I'm trying migration and it is throwing Exception Error? – Laravel

Code: ` public function up() { Schema::create('subscriptions', function (Blueprint $table) { $table->id(); $table->integer('month',4); $table->integer('price',7); $table->tinyInteger('status')->default(1); $table->timestamps(); }); }` Error: QLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be…

VIEW QUESTION

Laravel, vlookup version

I have 3 databases like theses : formations subjects formation_subject | id | name| | id | name | is_optional | | formation_id | subject_id | ___________ _________________________ ____________________________ where in the ModelsSubject, public function formations() { return $this->belongsToMany(Formation::class); }…

VIEW QUESTION

Cannot move image/files temp to public directory Laravel 9

I am trying to upload an image in Laravel. Getting the following error: "message": "Could not move the file "C:\xampp\tmp\php84AA.tmp" to "F:\bvend\bvend-web\public\uploads/products\bvend-product-1666274539.jpg" (move_uploaded_file(): Unable to move "C:\xampp\tmp\php84AA.tmp" to "F:\bvend\bvend-web\public\uploads/products\bvend-product-1666274539.jpg").", "exception": "Symfony\Component\HttpFoundation\File\Exception\FileException", "file": "F:\bvend\bvend-web\vendor\symfony\http-foundation\File\UploadedFile.php", "line": 177, "trace": [ .... ] My…

VIEW QUESTION

Laravel route not defined but it is defined

Route [partner.file.download] not defined. is the error i get, but this route is defined. and yes i am logged in as a 'partner' Web.php Route::group(['middleware' => 'role:partner', 'prefix' => 'partner', 'as' => 'partner.'], function(){ Route::resource('/dashboard', AppHttpControllerspartnerPartnerController::class); Route::resource('/profile', AppHttpControllerspartnerProfileController::class); Route::resource('/file', AppHttpControllerspartnerFileController::class);…

VIEW QUESTION
Back To Top
Search