namespace App\Http\Controllers\Admin;
Class 'App\Http\Controllers\Admin\Controller' not found
use App\Http\Controllers\Controller;
$users = App\User::all();
return $users->toArray();
Route::domain('sub.{domain}.ru')->group(function () {
Route::get('domaintest', function ($domain) {
dd($domain);
});
});
$client = Client::find(1);
$exists = $client->products->contains($product_id);
public function up()
{
Schema::create('role_user', function (Blueprint $table) {
$table->increments('id');
$table->integer('role_id')->unsigned();
$table->foreign('role_id')->references('id')->on('roles');
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users');
$table->timestamps();
});
}
composer create-project laravel/laravel your-project-name 5.7
Зачем ты ставишь инсталлер и не используешь его?