PHP code example of rawilk / laravel-casters
1. Go to this page and download the library: Download rawilk/laravel-casters library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rawilk / laravel-casters example snippets
protected $casts = [
// Hashes the value when assigning to `$model->password`.
// Note: Password cast is now deprecated. Use Laravel's hash cast instead.
'password' => Password::class,
// Provides utilities for manipulating a name
'name' => Name::class,
];