Download the PHP package nevestul4o/network-controller without Composer
On this page you can find all versions of the php package nevestul4o/network-controller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package network-controller
NetworkController
Use the
command to publish the NetworkController
configuration.
- All controllers should extend it.
- For example, if we need to link the
EmployeeController
, with the\api\employee
endpoint, add the following entry in theapi.php
in the\routes
folder:
`
BaseModel
- Abstract class, cannot be used standalone
- All models should extend it
- All models need to be placed in the
\App\Http\Models\
folder - Ideally, one model should have one controller, which extends NetworkController
BaseUser
- Abstract class, cannot be used standalone
- Provides basic user account functionality
- It MUST be extended by a model called User, placed in the
\App\Http\Models\
folder
FileUploadController and ImageUploadController
Add the following code in the api.php
in the \routes
folder:
Add the following configuration to the .env
file:
There is a command that allows to remove all resized images:
LoginController and ChangePasswordController
- Pre-made controller classes, providing basic functionality for login/logout and password changes
- They require a Model, called User, placed in the
\App\Http\Models\
folder, extending BaseUser - Change the namespace of the user provider in
auth.php
to\App\Http\Models\User
- They require a Transformer, called UserTransformer, placed in the
App\Http\Models\Transformers\
folder - Functions can be freely overridden
-
Can be used by defining these routes in the
api.php
: - WARNING - the function
changePasswordForced
in ChangePasswordController is NOT secured! It can change the password of the user, without his current password. Take care te secure it manually, when defining the API route, or override it!
All versions of network-controller with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0.2
laravel/framework Version ^9.0|^10.0|^11.0|^12.0
league/fractal Version ^0.19.0|^0.20.0
ext-imagick Version *
laravel/framework Version ^9.0|^10.0|^11.0|^12.0
league/fractal Version ^0.19.0|^0.20.0
ext-imagick Version *
The package nevestul4o/network-controller contains the following files
Loading the files please wait ....