PHP code example of antonioprimera / laravel-web-page
1. Go to this page and download the library: Download antonioprimera/laravel-web-page 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/ */
antonioprimera / laravel-web-page example snippets
return [
'components' => [
'Page' => [],
'Section' => [],
'Link' => [
'bits' => [
'Label', 'Url'
]
],
'Picture' => [
'bits' => [
'Source', 'Label'
]
],
],
'bits' => [
'ShortText' => [
'editor' => 'input#text', //default editor, so it can be omitted
'rules' => ['string', 'max:255'],
],
'LongText' => [
'editor' => 'textarea',
'rules' => ['string'], //default rule, so it can be omitted
],
//short text aliases
'Label' => 'alias:ShortText',
'Title' => 'alias:ShortText|
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.