headers: {
‘X-CSRF-TOKEN’: $(‘meta[name=”csrf-token”]’).attr(‘content’)
}
});
Route::get(‘builder/{savedtemplates}’, ‘SavedTemplatesController@show’);

Can any one help to find this error
I didn’t use auth service provider in this project
Is this correct
Yeah
Sorry that is 5.5
Try this
After adding ‘driver’=>’eloquent’
2. Add ArtisanServiceProvider
IllluminateFoundationProvidersArtisanServiceProvider
Under ‘providers’
3. Then perform composer update
After adding ‘driver’=>’eloquent’
2. Add ArtisanServiceProvider
IllluminateFoundationProvidersArtisanServiceProvider
Under ‘providers’
3. Then perform composer update
Done these steps but no change
Did U add the “::class” at the end of no.2
Then try and comment out the lines you just added before the updates then see what happens
Yap sure
Users table
public function up()
{
Schema::create(‘users’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->string(‘first_name’);
$table->string(‘last_name’);
$table->string(‘referral_code’)->nullable();
$table->integer(‘parent_id’)->unsigned()->nullable();
$table->string(‘mobile’)->unique();
$table->string(’email’)->unique();
$table->string(‘password’);
$table->rememberToken();
$table->timestamps();
});
}
Order table
public function up()
{
Schema::create(‘oreders’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->bigInteger(‘user_id’)->unsigned();
$table->foreign(‘user_id’)->references(‘id’)->on(‘users’)->onDelete(‘cascade’);
$table->bigInteger(‘product_id’)->unsigned();
$table->foreign(‘product_id’)->references(‘id’)->on(‘products’)->onDelete(‘cascade’);
$table->timestamps();
});
}
My Controller.php
public function index()
{
$orders = Order::with(‘user’)->where(”parent_id)->count();
return $orders;
}
I get this error.
> SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘parent_id’ in ‘where clause’ (SQL: select count(*) as aggregate from orders where exists (select * from users where orders.user_id = users.id`) and `parent_id is null)
Users table
public function up()
{
Schema::create(‘users’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->string(‘first_name’);
$table->string(‘last_name’);
$table->string(‘referral_code’)->nullable();
$table->integer(‘parent_id’)->unsigned()->nullable();
$table->string(‘mobile’)->unique();
$table->string(’email’)->unique();
$table->string(‘password’);
$table->rememberToken();
$table->timestamps();
});
}
Order table
public function up()
{
Schema::create(‘oreders’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->bigInteger(‘user_id’)->unsigned();
$table->foreign(‘user_id’)->references(‘id’)->on(‘users’)->onDelete(‘cascade’);
$table->bigInteger(‘product_id’)->unsigned();
$table->foreign(‘product_id’)->references(‘id’)->on(‘products’)->onDelete(‘cascade’);
$table->timestamps();
});
}
My Controller.php
public function index()
{
$orders = Order::with(‘user’)->where(”parent_id)->count();
return $orders;
}
I get this error.
> SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘parent_id’ in ‘where clause’ (SQL: select count(*) as aggregate from orders where exists (select * from users where orders.user_id = users.id`) and `parent_id is null)
Try this .. where(“users.parent_id”)
I’m hosting an API laravel project in it, and I’ve configured php/laravel to use SQL Server, so far, the migrations are running, creating objects with tinker works and saves in the DB, but when the VueJS SPA (in the same laravel project) queries the API, the driver throws the following exception:
SQLSTATE[08001]: [Microsoft][ODBC Driver 13 for SQL Server]Client unable to establish connection because an error was encountered during handshakes before login. Common causes include client attempting to connect to an unsupported version of SQL Server, server too busy to accept new connections or a resource limitation (memory or maximum allowed connections) on the server.
I’ve tried with SQLite and everything runs well, but no luck with MSSQL.
Please suggest me good tutorial for VCS and git
here is my code style


product_categories_category_id_foreign` foreign key (category_id) references categories (id))

_categories` (id bigint unsigned not null auto_increment primary key, category_id bigint unsigned not null, product_id bigint unsigned not null) default characte
r set utf8mb4 collate ‘utf8mb4_unicode_ci’)