-
Notifications
You must be signed in to change notification settings - Fork 233
Description
I am running laravel 10. the plugin works pefect with my workbench installed on ubuntu. The migration export works great as i have the ability to export to folder - i exported directly into the laravel project's migration folder.
however, the php files created has namespace specified. see example below:
`<?php
namespace Database\Migrations;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
`
now when i run
php artisan migrate
i get the following exception
` Whoops\Exception\ErrorException
Cannot declare class Database\Migrations\CreateCountriesTable, because the name is already in use
at database/migrations/2024_01_30_01_create_countries_table.php:9
5▕ use Illuminate\Support\Facades\Schema;
6▕ use Illuminate\Database\Schema\Blueprint;
7▕ use Illuminate\Database\Migrations\Migration;
8▕
➜ 9▕ class CreateCountriesTable extends Migration
10▕ {
11▕ /**
12▕ * Schema table name to migrate
13▕ * @var string
`
the migration php artisan command runs successfully when i remove the namespace definition from the file