Laravel link security
So i have a laravel project with multiple role's (admin, partner, dealer) as a dealer and partner i can download files that are assigned to me using a pivot table. as a partner i can see 1 file that is…
So i have a laravel project with multiple role's (admin, partner, dealer) as a dealer and partner i can download files that are assigned to me using a pivot table. as a partner i can see 1 file that is…
So i am working on a laravel project with multiple table's and pivot table's but i cant attach data to a specific pivot table because it wont accept the name. as a user i want to be able to download…
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…
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); }…
I am trying to deploy a Laravel 9 site onto an IIS Server (and no, I don't have the option of using a Linux server). If I run the local server setup with "php artisan serve", it works fine through…
I'm new to PHP. I am currently creating an App in Laravel. When I write echo in the php directive of Blade and pass the php code as a string as an argument, the contents of the php code is…
I'm absolutely new to php/laravel world so sorry if my question is simple. Language: php with laravel. What : I want to get all objects who contain the name of the users. //Exemple of my users Array ($users = ["name1",…
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…
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);…
i used to use my Laravel Project with PhP 5.6 and i'm using barcode Gnerator for my project some where and to do this i use this package . laravel/laravel barcode_blog now i upgraded my PhP To 7.4 (note: didn't…