configure stub indentation

This commit is contained in:
Geriano
2022-08-10 04:54:12 +07:00
parent 02bfa6aa5b
commit 97aa7ab512
39 changed files with 1063 additions and 1063 deletions

View File

@@ -6,17 +6,17 @@ use Illuminate\Contracts\Database\Eloquent\CastsInboundAttributes;
class {{ class }} implements CastsInboundAttributes class {{ class }} implements CastsInboundAttributes
{ {
/** /**
* Prepare the given value for storage. * Prepare the given value for storage.
* *
* @param \Illuminate\Database\Eloquent\Model $model * @param \Illuminate\Database\Eloquent\Model $model
* @param string $key * @param string $key
* @param mixed $value * @param mixed $value
* @param array $attributes * @param array $attributes
* @return mixed * @return mixed
*/ */
public function set($model, string $key, $value, array $attributes) public function set($model, string $key, $value, array $attributes)
{ {
return $value; return $value;
} }
} }

View File

@@ -6,31 +6,31 @@ use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
class {{ class }} implements CastsAttributes class {{ class }} implements CastsAttributes
{ {
/** /**
* Cast the given value. * Cast the given value.
* *
* @param \Illuminate\Database\Eloquent\Model $model * @param \Illuminate\Database\Eloquent\Model $model
* @param string $key * @param string $key
* @param mixed $value * @param mixed $value
* @param array $attributes * @param array $attributes
* @return mixed * @return mixed
*/ */
public function get($model, string $key, $value, array $attributes) public function get($model, string $key, $value, array $attributes)
{ {
return $value; return $value;
} }
/** /**
* Prepare the given value for storage. * Prepare the given value for storage.
* *
* @param \Illuminate\Database\Eloquent\Model $model * @param \Illuminate\Database\Eloquent\Model $model
* @param string $key * @param string $key
* @param mixed $value * @param mixed $value
* @param array $attributes * @param array $attributes
* @return mixed * @return mixed
*/ */
public function set($model, string $key, $value, array $attributes) public function set($model, string $key, $value, array $attributes)
{ {
return $value; return $value;
} }
} }

View File

@@ -6,27 +6,27 @@ use Illuminate\Console\Command;
class {{ class }} extends Command class {{ class }} extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
* *
* @var string * @var string
*/ */
protected $signature = '{{ command }}'; protected $signature = '{{ command }}';
/** /**
* The console command description. * The console command description.
* *
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
* *
* @return int * @return int
*/ */
public function handle() public function handle()
{ {
return 0; return 0;
} }
} }

View File

@@ -7,58 +7,58 @@ use Illuminate\Http\Request;
class {{ class }} extends Controller class {{ class }} extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index() public function index()
{ {
// //
} }
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function store(Request $request) public function store(Request $request)
{ {
// //
} }
/** /**
* Display the specified resource. * Display the specified resource.
* *
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function show($id) public function show($id)
{ {
// //
} }
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
// //
} }
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy($id) public function destroy($id)
{ {
// //
} }
} }

View File

@@ -7,14 +7,14 @@ use Illuminate\Http\Request;
class {{ class }} extends Controller class {{ class }} extends Controller
{ {
/** /**
* Handle the incoming request. * Handle the incoming request.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function __invoke(Request $request) public function __invoke(Request $request)
{ {
// //
} }
} }

View File

@@ -8,58 +8,58 @@ use {{ namespacedRequests }}
class {{ class }} extends Controller class {{ class }} extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index() public function index()
{ {
// //
} }
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param \{{ namespacedStoreRequest }} $request * @param \{{ namespacedStoreRequest }} $request
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function store({{ storeRequest }} $request) public function store({{ storeRequest }} $request)
{ {
// //
} }
/** /**
* Display the specified resource. * Display the specified resource.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function show({{ model }} ${{ modelVariable }}) public function show({{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
* *
* @param \{{ namespacedUpdateRequest }} $request * @param \{{ namespacedUpdateRequest }} $request
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function update({{ updateRequest }} $request, {{ model }} ${{ modelVariable }}) public function update({{ updateRequest }} $request, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy({{ model }} ${{ modelVariable }}) public function destroy({{ model }} ${{ modelVariable }})
{ {
// //
} }
} }

View File

@@ -8,79 +8,79 @@ use {{ namespacedRequests }}
class {{ class }} extends Controller class {{ class }} extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index() public function index()
{ {
// //
} }
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function create() public function create()
{ {
// //
} }
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param \{{ namespacedStoreRequest }} $request * @param \{{ namespacedStoreRequest }} $request
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function store({{ storeRequest }} $request) public function store({{ storeRequest }} $request)
{ {
// //
} }
/** /**
* Display the specified resource. * Display the specified resource.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function show({{ model }} ${{ modelVariable }}) public function show({{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function edit({{ model }} ${{ modelVariable }}) public function edit({{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
* *
* @param \{{ namespacedUpdateRequest }} $request * @param \{{ namespacedUpdateRequest }} $request
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function update({{ updateRequest }} $request, {{ model }} ${{ modelVariable }}) public function update({{ updateRequest }} $request, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy({{ model }} ${{ modelVariable }}) public function destroy({{ model }} ${{ modelVariable }})
{ {
// //
} }
} }

View File

@@ -9,63 +9,63 @@ use {{ namespacedParentModel }};
class {{ class }} extends Controller class {{ class }} extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
* *
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index({{ parentModel }} ${{ parentModelVariable }}) public function index({{ parentModel }} ${{ parentModelVariable }})
{ {
// //
} }
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }}) public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }})
{ {
// //
} }
/** /**
* Display the specified resource. * Display the specified resource.
* *
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
{ {
// //
} }
} }

View File

@@ -9,86 +9,86 @@ use {{ namespacedParentModel }};
class {{ class }} extends Controller class {{ class }} extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
* *
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index({{ parentModel }} ${{ parentModelVariable }}) public function index({{ parentModel }} ${{ parentModelVariable }})
{ {
// //
} }
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
* *
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function create({{ parentModel }} ${{ parentModelVariable }}) public function create({{ parentModel }} ${{ parentModelVariable }})
{ {
// //
} }
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }}) public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }})
{ {
// //
} }
/** /**
* Display the specified resource. * Display the specified resource.
* *
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
* *
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function edit({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) public function edit({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }} * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
{ {
// //
} }
} }

View File

@@ -7,5 +7,5 @@ use Illuminate\Http\Request;
class {{ class }} extends Controller class {{ class }} extends Controller
{ {
// //
} }

View File

@@ -7,79 +7,79 @@ use Illuminate\Http\Request;
class {{ class }} extends Controller class {{ class }} extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index() public function index()
{ {
// //
} }
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function create() public function create()
{ {
// //
} }
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function store(Request $request) public function store(Request $request)
{ {
// //
} }
/** /**
* Display the specified resource. * Display the specified resource.
* *
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function show($id) public function show($id)
{ {
// //
} }
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
* *
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function edit($id) public function edit($id)
{ {
// //
} }
/** /**
* Update the specified resource in storage. * Update the specified resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
// //
} }
/** /**
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy($id) public function destroy($id)
{ {
// //
} }
} }

View File

@@ -12,25 +12,25 @@ use Illuminate\Queue\SerializesModels;
class {{ class }} class {{ class }}
{ {
use Dispatchable, InteractsWithSockets, SerializesModels; use Dispatchable, InteractsWithSockets, SerializesModels;
/** /**
* Create a new event instance. * Create a new event instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
/** /**
* Get the channels the event should broadcast on. * Get the channels the event should broadcast on.
* *
* @return \Illuminate\Broadcasting\Channel|array * @return \Illuminate\Broadcasting\Channel|array
*/ */
public function broadcastOn() public function broadcastOn()
{ {
return new PrivateChannel('channel-name'); return new PrivateChannel('channel-name');
} }
} }

View File

@@ -5,19 +5,19 @@ namespace {{ factoryNamespace }};
use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Factories\Factory;
/** /**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\{{ namespacedModel }}> * @extends \Illuminate\Database\Eloquent\Factories\Factory<\{{ namespacedModel }}>
*/ */
class {{ factory }}Factory extends Factory class {{ factory }}Factory extends Factory
{ {
/** /**
* Define the model's default state. * Define the model's default state.
* *
* @return array<string, mixed> * @return array<string, mixed>
*/ */
public function definition() public function definition()
{ {
return [ return [
// //
]; ];
} }
} }

View File

@@ -11,25 +11,25 @@ use Illuminate\Queue\SerializesModels;
class {{ class }} implements ShouldQueue class {{ class }} implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** /**
* Create a new job instance. * Create a new job instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
/** /**
* Execute the job. * Execute the job.
* *
* @return void * @return void
*/ */
public function handle() public function handle()
{ {
// //
} }
} }

View File

@@ -6,25 +6,25 @@ use Illuminate\Foundation\Bus\Dispatchable;
class {{ class }} class {{ class }}
{ {
use Dispatchable; use Dispatchable;
/** /**
* Create a new job instance. * Create a new job instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
/** /**
* Execute the job. * Execute the job.
* *
* @return void * @return void
*/ */
public function handle() public function handle()
{ {
// //
} }
} }

View File

@@ -9,25 +9,25 @@ use Illuminate\Queue\SerializesModels;
class {{ class }} extends Mailable class {{ class }} extends Mailable
{ {
use Queueable, SerializesModels; use Queueable, SerializesModels;
/** /**
* Create a new message instance. * Create a new message instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
/** /**
* Build the message. * Build the message.
* *
* @return $this * @return $this
*/ */
public function build() public function build()
{ {
return $this->view('view.name'); return $this->view('view.name');
} }
} }

View File

@@ -9,25 +9,25 @@ use Illuminate\Queue\SerializesModels;
class {{ class }} extends Mailable class {{ class }} extends Mailable
{ {
use Queueable, SerializesModels; use Queueable, SerializesModels;
/** /**
* Create a new message instance. * Create a new message instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
/** /**
* Build the message. * Build the message.
* *
* @return $this * @return $this
*/ */
public function build() public function build()
{ {
return $this->markdown('{{ view }}'); return $this->markdown('{{ view }}');
} }
} }

View File

@@ -9,50 +9,50 @@ use Illuminate\Notifications\Notification;
class {{ class }} extends Notification class {{ class }} extends Notification
{ {
use Queueable; use Queueable;
/** /**
* Create a new notification instance. * Create a new notification instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
/** /**
* Get the notification's delivery channels. * Get the notification's delivery channels.
* *
* @param mixed $notifiable * @param mixed $notifiable
* @return array * @return array
*/ */
public function via($notifiable) public function via($notifiable)
{ {
return ['mail']; return ['mail'];
} }
/** /**
* Get the mail representation of the notification. * Get the mail representation of the notification.
* *
* @param mixed $notifiable * @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage * @return \Illuminate\Notifications\Messages\MailMessage
*/ */
public function toMail($notifiable) public function toMail($notifiable)
{ {
return (new MailMessage)->markdown('{{ view }}'); return (new MailMessage)->markdown('{{ view }}');
} }
/** /**
* Get the array representation of the notification. * Get the array representation of the notification.
* *
* @param mixed $notifiable * @param mixed $notifiable
* @return array * @return array
*/ */
public function toArray($notifiable) public function toArray($notifiable)
{ {
return [ return [
// //
]; ];
} }
} }

View File

@@ -7,15 +7,15 @@ use Illuminate\Http\Request;
class {{ class }} class {{ class }}
{ {
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/ */
public function handle(Request $request, Closure $next) public function handle(Request $request, Closure $next)
{ {
return $next($request); return $next($request);
} }
} }

View File

@@ -6,26 +6,26 @@ use Illuminate\Support\Facades\Schema;
return new class extends Migration return new class extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *
* @return void * @return void
*/ */
public function up() public function up()
{ {
Schema::create('{{ table }}', function (Blueprint $table) { Schema::create('{{ table }}', function (Blueprint $table) {
$table->id(); $table->id();
$table->timestamps(); $table->timestamps();
}); });
} }
/** /**
* Reverse the migrations. * Reverse the migrations.
* *
* @return void * @return void
*/ */
public function down() public function down()
{ {
Schema::dropIfExists('{{ table }}'); Schema::dropIfExists('{{ table }}');
} }
}; };

View File

@@ -6,23 +6,23 @@ use Illuminate\Support\Facades\Schema;
return new class extends Migration return new class extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *
* @return void * @return void
*/ */
public function up() public function up()
{ {
// //
} }
/** /**
* Reverse the migrations. * Reverse the migrations.
* *
* @return void * @return void
*/ */
public function down() public function down()
{ {
// //
} }
}; };

View File

@@ -6,27 +6,27 @@ use Illuminate\Support\Facades\Schema;
return new class extends Migration return new class extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *
* @return void * @return void
*/ */
public function up() public function up()
{ {
Schema::table('{{ table }}', function (Blueprint $table) { Schema::table('{{ table }}', function (Blueprint $table) {
// //
}); });
} }
/** /**
* Reverse the migrations. * Reverse the migrations.
* *
* @return void * @return void
*/ */
public function down() public function down()
{ {
Schema::table('{{ table }}', function (Blueprint $table) { Schema::table('{{ table }}', function (Blueprint $table) {
// //
}); });
} }
}; };

View File

@@ -6,5 +6,5 @@ use Illuminate\Database\Eloquent\Relations\Pivot;
class {{ class }} extends Pivot class {{ class }} extends Pivot
{ {
// //
} }

View File

@@ -7,5 +7,5 @@ use Illuminate\Database\Eloquent\Model;
class {{ class }} extends Model class {{ class }} extends Model
{ {
use HasFactory; use HasFactory;
} }

View File

@@ -9,53 +9,53 @@ use Illuminate\Notifications\Notification;
class {{ class }} extends Notification class {{ class }} extends Notification
{ {
use Queueable; use Queueable;
/** /**
* Create a new notification instance. * Create a new notification instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
/** /**
* Get the notification's delivery channels. * Get the notification's delivery channels.
* *
* @param mixed $notifiable * @param mixed $notifiable
* @return array * @return array
*/ */
public function via($notifiable) public function via($notifiable)
{ {
return ['mail']; return ['mail'];
} }
/** /**
* Get the mail representation of the notification. * Get the mail representation of the notification.
* *
* @param mixed $notifiable * @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage * @return \Illuminate\Notifications\Messages\MailMessage
*/ */
public function toMail($notifiable) public function toMail($notifiable)
{ {
return (new MailMessage) return (new MailMessage)
->line('The introduction to the notification.') ->line('The introduction to the notification.')
->action('Notification Action', url('/')) ->action('Notification Action', url('/'))
->line('Thank you for using our application!'); ->line('Thank you for using our application!');
} }
/** /**
* Get the array representation of the notification. * Get the array representation of the notification.
* *
* @param mixed $notifiable * @param mixed $notifiable
* @return array * @return array
*/ */
public function toArray($notifiable) public function toArray($notifiable)
{ {
return [ return [
// //
]; ];
} }
} }

View File

@@ -4,5 +4,5 @@ namespace {{ namespace }};
class {{ class }} class {{ class }}
{ {
// //
} }

View File

@@ -6,58 +6,58 @@ use {{ namespacedModel }};
class {{ class }} class {{ class }}
{ {
/** /**
* Handle the {{ model }} "created" event. * Handle the {{ model }} "created" event.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return void * @return void
*/ */
public function created({{ model }} ${{ modelVariable }}) public function created({{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Handle the {{ model }} "updated" event. * Handle the {{ model }} "updated" event.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return void * @return void
*/ */
public function updated({{ model }} ${{ modelVariable }}) public function updated({{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Handle the {{ model }} "deleted" event. * Handle the {{ model }} "deleted" event.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return void * @return void
*/ */
public function deleted({{ model }} ${{ modelVariable }}) public function deleted({{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Handle the {{ model }} "restored" event. * Handle the {{ model }} "restored" event.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return void * @return void
*/ */
public function restored({{ model }} ${{ modelVariable }}) public function restored({{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Handle the {{ model }} "force deleted" event. * Handle the {{ model }} "force deleted" event.
* *
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return void * @return void
*/ */
public function forceDeleted({{ model }} ${{ modelVariable }}) public function forceDeleted({{ model }} ${{ modelVariable }})
{ {
// //
} }
} }

View File

@@ -7,15 +7,15 @@ use {{ namespacedUserModel }};
class {{ class }} class {{ class }}
{ {
use HandlesAuthorization; use HandlesAuthorization;
/** /**
* Create a new policy instance. * Create a new policy instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
} }

View File

@@ -8,87 +8,87 @@ use {{ namespacedUserModel }};
class {{ class }} class {{ class }}
{ {
use HandlesAuthorization; use HandlesAuthorization;
/** /**
* Determine whether the user can view any models. * Determine whether the user can view any models.
* *
* @param \{{ namespacedUserModel }} $user * @param \{{ namespacedUserModel }} $user
* @return \Illuminate\Auth\Access\Response|bool * @return \Illuminate\Auth\Access\Response|bool
*/ */
public function viewAny({{ user }} $user) public function viewAny({{ user }} $user)
{ {
// //
} }
/** /**
* Determine whether the user can view the model. * Determine whether the user can view the model.
* *
* @param \{{ namespacedUserModel }} $user * @param \{{ namespacedUserModel }} $user
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Auth\Access\Response|bool * @return \Illuminate\Auth\Access\Response|bool
*/ */
public function view({{ user }} $user, {{ model }} ${{ modelVariable }}) public function view({{ user }} $user, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Determine whether the user can create models. * Determine whether the user can create models.
* *
* @param \{{ namespacedUserModel }} $user * @param \{{ namespacedUserModel }} $user
* @return \Illuminate\Auth\Access\Response|bool * @return \Illuminate\Auth\Access\Response|bool
*/ */
public function create({{ user }} $user) public function create({{ user }} $user)
{ {
// //
} }
/** /**
* Determine whether the user can update the model. * Determine whether the user can update the model.
* *
* @param \{{ namespacedUserModel }} $user * @param \{{ namespacedUserModel }} $user
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Auth\Access\Response|bool * @return \Illuminate\Auth\Access\Response|bool
*/ */
public function update({{ user }} $user, {{ model }} ${{ modelVariable }}) public function update({{ user }} $user, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Determine whether the user can delete the model. * Determine whether the user can delete the model.
* *
* @param \{{ namespacedUserModel }} $user * @param \{{ namespacedUserModel }} $user
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Auth\Access\Response|bool * @return \Illuminate\Auth\Access\Response|bool
*/ */
public function delete({{ user }} $user, {{ model }} ${{ modelVariable }}) public function delete({{ user }} $user, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Determine whether the user can restore the model. * Determine whether the user can restore the model.
* *
* @param \{{ namespacedUserModel }} $user * @param \{{ namespacedUserModel }} $user
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Auth\Access\Response|bool * @return \Illuminate\Auth\Access\Response|bool
*/ */
public function restore({{ user }} $user, {{ model }} ${{ modelVariable }}) public function restore({{ user }} $user, {{ model }} ${{ modelVariable }})
{ {
// //
} }
/** /**
* Determine whether the user can permanently delete the model. * Determine whether the user can permanently delete the model.
* *
* @param \{{ namespacedUserModel }} $user * @param \{{ namespacedUserModel }} $user
* @param \{{ namespacedModel }} ${{ modelVariable }} * @param \{{ namespacedModel }} ${{ modelVariable }}
* @return \Illuminate\Auth\Access\Response|bool * @return \Illuminate\Auth\Access\Response|bool
*/ */
public function forceDelete({{ user }} $user, {{ model }} ${{ modelVariable }}) public function forceDelete({{ user }} $user, {{ model }} ${{ modelVariable }})
{ {
// //
} }
} }

View File

@@ -6,23 +6,23 @@ use Illuminate\Support\ServiceProvider;
class {{ class }} extends ServiceProvider class {{ class }} extends ServiceProvider
{ {
/** /**
* Register services. * Register services.
* *
* @return void * @return void
*/ */
public function register() public function register()
{ {
// //
} }
/** /**
* Bootstrap services. * Bootstrap services.
* *
* @return void * @return void
*/ */
public function boot() public function boot()
{ {
// //
} }
} }

View File

@@ -6,25 +6,25 @@ use Illuminate\Foundation\Http\FormRequest;
class {{ class }} extends FormRequest class {{ class }} extends FormRequest
{ {
/** /**
* Determine if the user is authorized to make this request. * Determine if the user is authorized to make this request.
* *
* @return bool * @return bool
*/ */
public function authorize() public function authorize()
{ {
return false; return false;
} }
/** /**
* Get the validation rules that apply to the request. * Get the validation rules that apply to the request.
* *
* @return array<string, mixed> * @return array<string, mixed>
*/ */
public function rules() public function rules()
{ {
return [ return [
// //
]; ];
} }
} }

View File

@@ -6,14 +6,14 @@ use Illuminate\Http\Resources\Json\ResourceCollection;
class {{ class }} extends ResourceCollection class {{ class }} extends ResourceCollection
{ {
/** /**
* Transform the resource collection into an array. * Transform the resource collection into an array.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
*/ */
public function toArray($request) public function toArray($request)
{ {
return parent::toArray($request); return parent::toArray($request);
} }
} }

View File

@@ -6,14 +6,14 @@ use Illuminate\Http\Resources\Json\JsonResource;
class {{ class }} extends JsonResource class {{ class }} extends JsonResource
{ {
/** /**
* Transform the resource into an array. * Transform the resource into an array.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
*/ */
public function toArray($request) public function toArray($request)
{ {
return parent::toArray($request); return parent::toArray($request);
} }
} }

View File

@@ -6,35 +6,35 @@ use Illuminate\Contracts\Validation\{{ ruleType }};
class {{ class }} implements {{ ruleType }} class {{ class }} implements {{ ruleType }}
{ {
/** /**
* Create a new rule instance. * Create a new rule instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
/** /**
* Determine if the validation rule passes. * Determine if the validation rule passes.
* *
* @param string $attribute * @param string $attribute
* @param mixed $value * @param mixed $value
* @return bool * @return bool
*/ */
public function passes($attribute, $value) public function passes($attribute, $value)
{ {
// //
} }
/** /**
* Get the validation error message. * Get the validation error message.
* *
* @return string * @return string
*/ */
public function message() public function message()
{ {
return 'The validation error message.'; return 'The validation error message.';
} }
} }

View File

@@ -8,16 +8,16 @@ use Illuminate\Database\Eloquent\Scope;
class {{ class }} implements Scope class {{ class }} implements Scope
{ {
/** /**
* Apply the scope to a given Eloquent query builder. * Apply the scope to a given Eloquent query builder.
* *
* @param \Illuminate\Database\Eloquent\Builder $builder * @param \Illuminate\Database\Eloquent\Builder $builder
* @param \Illuminate\Database\Eloquent\Model $model * @param \Illuminate\Database\Eloquent\Model $model
* @return void * @return void
*/ */
public function apply(Builder $builder, Model $model) public function apply(Builder $builder, Model $model)
{ {
// //
} }
} }

View File

@@ -7,13 +7,13 @@ use Illuminate\Database\Seeder;
class {{ class }} extends Seeder class {{ class }} extends Seeder
{ {
/** /**
* Run the database seeds. * Run the database seeds.
* *
* @return void * @return void
*/ */
public function run() public function run()
{ {
// //
} }
} }

View File

@@ -8,15 +8,15 @@ use Tests\TestCase;
class {{ class }} extends TestCase class {{ class }} extends TestCase
{ {
/** /**
* A basic feature test example. * A basic feature test example.
* *
* @return void * @return void
*/ */
public function test_example() public function test_example()
{ {
$response = $this->get('/'); $response = $this->get('/');
$response->assertStatus(200); $response->assertStatus(200);
} }
} }

View File

@@ -6,13 +6,13 @@ use PHPUnit\Framework\TestCase;
class {{ class }} extends TestCase class {{ class }} extends TestCase
{ {
/** /**
* A basic unit test example. * A basic unit test example.
* *
* @return void * @return void
*/ */
public function test_example() public function test_example()
{ {
$this->assertTrue(true); $this->assertTrue(true);
} }
} }

View File

@@ -6,23 +6,23 @@ use Illuminate\View\Component;
class {{ class }} extends Component class {{ class }} extends Component
{ {
/** /**
* Create a new component instance. * Create a new component instance.
* *
* @return void * @return void
*/ */
public function __construct() public function __construct()
{ {
// //
} }
/** /**
* Get the view / contents that represent the component. * Get the view / contents that represent the component.
* *
* @return \Illuminate\Contracts\View\View|\Closure|string * @return \Illuminate\Contracts\View\View|\Closure|string
*/ */
public function render() public function render()
{ {
return {{ view }}; return {{ view }};
} }
} }