@inject( 'SchemaService', 'App\Services\Schema' )<{{ '?php' }} @inject( 'Str', 'Illuminate\Support\Str' ) /** * Table Migration * @package {{ config( 'nexopos.version' ) }} **/ namespace Modules\{{ $module[ 'namespace' ] }}\Migrations; use App\Classes\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class {{ ucwords( $Str::camel( $migration ) ) }} extends Migration { /** * Run the migrations. * * @return void */ public function up() { @php $SchemaService->renderSchema( compact( 'table', 'schema' ) ) @endphp } /** * Reverse the migrations. * * @return void */ public function down() { @php $SchemaService->renderDrop( compact( 'table', 'schema' ) ) @endphp } }