PHP code example of lab1353 / monkyz

1. Go to this page and download the library: Download lab1353/monkyz 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/ */

    

lab1353 / monkyz example snippets


'providers' => [
	Lab1353\Monkyz\MonkyzServiceProvider::class,
];

'table_name'	=> [	// name of table in db
	'title'	=> 'Table',
	'icon'	=> 'fa fa-table fa-fw',
	'visible'	=> true,
  'ajax_list' => false,
	'fields'	=> [
		'field_name'	=> [	// name of field in db
			'title'	=> 'Column',
      'input' => 'text',
			'order'	=> 'asc',
			'in_list'	=> true,
			'in_edit'	=> true,
			'enum'	=> [
				'attr'	=> 'value'
			]
			'file'	=> [
				'disk'	=> 'local',
				'path'	=> 'uploads/',
				'overwrite'	=> true,
				'resize'	=> false,
				'resize_height_px'	=> 1000,
				'resize_width_px'	=> 1000,
			],
			'relation'	=> [
				'table'	=> 'table2',
				'field_value'	=> 'id',
				'field_text'	=> 'name',
			],
			'attributes'	=> [
				'attr'	=> 'value'
			]
		]
	]
],

'table_name'	=> [	// name of table in db
	'fields'	=> [
		'field_name'	=> [	// name of field in db
			'input'	=> 'custom',	// <-- change 'custom' with your custom field name
bash
php composer.phar 
bash
php composer.phar 
bash
php artisan vendor:publish --provider="Lab1353\Monkyz\MonkyzServiceProvider"
bash
php artisan monkyz:tables
bash
php artisan vendor:publish --provider="Lab1353\Monkyz\Providers\MonkyzServiceProvider"
bash
cd resources/views/vendor/monkyz
touch custom.blade.php