PHP code example of niladam / romanian-date-time
1. Go to this page and download the library: Download niladam/romanian-date-time 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/ */
niladam / romanian-date-time example snippets
namespace App\Nova;
use Illuminate\Http\Request;
use Madalin\RomanianDateTime\RomanianDateTime as DateTime;
class User extends Resource
{
/**
* The model the resource corresponds to.
*
* @var string
*/
public static $model = 'App\User';
/**
* The single value that should be used to represent the resource when being displayed.
*
* @var string
*/
public static $title = 'name';
/**
* The columns that should be searched.
*
* @var array
*/
public static $search = ['name',
'email'];
/**
* Get the fields displayed by the resource.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function fields(Request $request)
{
return [
ID::make()->sortable(),
Text::make(__('Name'), 'name')
->sortable()
->rules('