PHP code example of brtlby / do
1. Go to this page and download the library: Download brtlby/do 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/ */
brtlby / do example snippets
namespace App\Http\Controller\DesiredController;
use DO\Main\DataObject;
class DesiredController extends Controller
{
public function index()
{
DataObject::build('list', 'desiredListID');
return view('desiredView', ['object' => DataObject::getDataObject('desiredListID')]);
}
}
DataObject::build('list', 'objectID');
resources/views/DataObjects/table.blade.php