artisan('make:crud', ['name' => $this->modelName, '--no-interaction' => true]); $indexViewPath = resource_path("views/{$this->tableName}/index.blade.php"); $this->assertFileExists($indexViewPath); $indexViewContent = "@extends('layouts.app') @section('title', trans('master.list')) @section('content') {{ link_to_route('masters.index', trans('master.create'), ['action' => 'create'], ['class' => 'btn btn-success pull-right']) }}
| {{ trans('app.table_no') }} | {{ trans('master.name') }} | {{ trans('master.description') }} | {{ trans('app.action') }} |
|---|---|---|---|
| {{ 1 + \$key }} | {{ \$master->name }} | {{ \$master->description }} | {!! link_to_route('masters.index', trans('app.edit'), ['action' => 'edit', 'id' => \$master->id], ['id' => 'edit-master-' . \$master->id]) !!} | {!! link_to_route('masters.index', trans('app.delete'), ['action' => 'delete', 'id' => \$master->id], ['id' => 'del-master-' . \$master->id]) !!} |
{{ \$editableMaster->name }}
{!! \$errors->first('master_id', ':message') !!}