Laravel relationships and pivot tables

I’m working on my first ever laravel app, now I’m at the stage of creating some relationships for my content types. In the app I can create an appointment which in the process of doing so also saves …

Auth::check() returns false after successful login attempt

I’m trying to make a custom guard and I am successful, but when I attempt a login using the guard the $this->attemptLogin($request) returns true but after directly afterwards the Auth::check() …

Laravel get ID of newly created resource

So basically I am doing this: Laptop::create([ ‘user_id’ => 1, ‘name’ => $request->name, ‘brand’ => $request->brand, ‘SN’ => $request->SN, ‘price’ => $…

How to authenticate user without a DB in Laravel?

I created a new project in Laravel that consumes all data from an API. For private data like a user profile, I need an access token to get the data. Once I have an access token, how do I set the …

Illegal operator and value combination when paginating in Laravel

I am a newbie at Laravel 6. In the view, I created a form, and when it’s submitted, it should return a table filtered with the links of pagination at the bottom. All works correctly, but when I click …

Laravel 6 – SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;

when I run php artisan migrate to migrate this Schema public function up() { Schema::create(‘transaction_ins’, function (Blueprint $table) { $table->bigIncrements(‘id’); $…

Laravel 6 – Missing required parameters for [Route: suppliers.destroy] [URI: suppliers/{supplier}]

i have index page with a button to remove a column from a table. @foreach ($suppliers as $supplier)

{{ $supplier -> idSupplier }}

Getting 404 in laravel 6.x

I have created ApiController in AppHttpControllersApiv1 Also created auth using laravel/ui Default created function for front end working perfectly. But issue is when try to call the …

Connecting To Firestore Using Laravel 6 Not Working

I’ve been trying to insert data into firestore using my laravel 6 application and it looks like its trying to connect to mysql. I’ve tried to remove the db part in my .env file: DB_CONNECTION=mysql …

Laravel 6: Class ‘Form’ not found

I have a fresh Laravel 6 and I try to use Laravel forms but I got the error saying “Class ‘Form’ not found “. I tried the followings but still not working: 1). Add this to composer.json “require”: {…