crud.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Stubs Path
  6. |--------------------------------------------------------------------------
  7. |
  8. | The stubs path directory to generate crud. You may configure your
  9. | stubs paths here, allowing you to customize the own stubs of the
  10. | model,controller or view. Or, you may simply stick with the CrudGenerator defaults!
  11. |
  12. | Example: 'stub_path' => resource_path('stubs/')
  13. | Default: "default"
  14. | Files:
  15. | Controller.stub
  16. | Model.stub
  17. | Request.stub
  18. | views/
  19. | bootstrap/
  20. | create.stub
  21. | edit.stub
  22. | form.stub
  23. | form-field.stub
  24. | index.stub
  25. | show.stub
  26. | view-field.stub
  27. */
  28. 'stub_path' => 'default',
  29. /*
  30. |--------------------------------------------------------------------------
  31. | Application Layout
  32. |--------------------------------------------------------------------------
  33. |
  34. | This value is the name of your application layout. This value is used when creating
  35. | views for crud. Default will be the "layouts.app".
  36. |
  37. | layout = false or layout = null will not create the layout files.
  38. */
  39. 'layout' => 'layouts.app',
  40. 'model' => [
  41. 'namespace' => 'App\Models',
  42. /*
  43. * Do not make these columns $fillable in Model or views
  44. */
  45. 'unwantedColumns' => [
  46. 'id',
  47. 'uuid',
  48. 'ulid',
  49. 'password',
  50. 'email_verified_at',
  51. 'remember_token',
  52. 'created_at',
  53. 'updated_at',
  54. 'deleted_at',
  55. ],
  56. ],
  57. 'controller' => [
  58. 'namespace' => 'App\Http\Controllers',
  59. 'apiNamespace' => 'App\Http\Controllers\Api',
  60. ],
  61. 'resources' => [
  62. 'namespace' => 'App\Http\Resources',
  63. ],
  64. 'livewire' => [
  65. 'namespace' => 'App\Livewire',
  66. ],
  67. 'request' => [
  68. 'namespace' => 'App\Http\Requests',
  69. ],
  70. ];