Download the PHP package opanegro/nova-custom-controller without Composer
On this page you can find all versions of the php package opanegro/nova-custom-controller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download opanegro/nova-custom-controller
More information about opanegro/nova-custom-controller
Files in opanegro/nova-custom-controller
Download opanegro/nova-custom-controller
More information about opanegro/nova-custom-controller
Files in opanegro/nova-custom-controller
Vendor opanegro
Package nova-custom-controller
Short Description Make custom controller in Laravel Nova
License MIT
Package nova-custom-controller
Short Description Make custom controller in Laravel Nova
License MIT
Please rate this library. Is it a good library?
Informations about the package nova-custom-controller
Laravel Nova Custom Controller
Package Nova Custom Controller berfungsi untuk mengolah request tanpa perlu membuat controller baru, karna fitur ini sudah otomatis meng-override controller pada Laravel Nova anda.
Required:
- PHP Version >= 7.1
- Laravel >= 5.8
- Laravel Nova >= 2.0
Cara Install:
-
Kemudian jalankan command:
- Selesai
Cara Penggunaan:
-
Daftarkan
trait
di fileapp/Nova/Resource.php
- Tambahkan method yang anda butuhkan di resources, contoh pada resource
app/Nova/User.php
Create Controller with command
php artisan nova:custom-controller User --event=store --custom-uri-key=users
User
: is the name of resource--event
: is event if you want, availablestore
,update
--custom-uri-key
: if you set the resource with custom uri key
Daftar method yang bisa digunakan:
Method Name | Type | Return | Description |
---|---|---|---|
beforeCreated() |
static function |
Proses sebelum melakukan penyimpanan data baru | |
afterCreated() |
static function |
Proses setelah melakukan penyimpanan data baru | |
beforeUpdated() |
static function |
Proses sebelum melakukan penyimpanan data lama | |
afterUpdated() |
static function |
Proses setelah melakukan penyimpanan data lama | |
afterSave() |
static function |
Proses setelah melakukan penyimpanan data baru & lama | |
beforeSave() |
static function |
Proses sebelum melakukan penyimpanan data baru & lama | |
customStoreController() |
static function |
Custom full store process controller | |
customUpdateController() |
static function |
Custom full update process controller | |
$unsetCustomFields |
static variable |
array |
Unset model jika terdapat nama custom field yang tidak tersedia di fillable |
$setCustomRequests |
static variable |
array |
Menambah request baru untuk melakukan process pada model |
Contribute:
- If you help us, translate to english
- Add your request or bug in issue
Terima kasih buat:
- DOT Mas Ardi
- DOT Mas Didik
- DOT Mas Haris
- DOT Team Projek
- DOT Rangers
All versions of nova-custom-controller with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
The package opanegro/nova-custom-controller contains the following files
Loading the files please wait ....