2.0 DOCUMENTATION

NAVIGATION BUILDER COMPONENT

Build Custom Navigations Easily!

QUERYING CUSTOM NAVIGATION FOR FRONT END:

The best way to query contents is to use the commands. You can use the raw Eloquent query but its more convenient to use the built-in commands for ease of query.

Query Navigation By ID:

On your controller, you can do this:


$commandDispatcher = app('Darryldecode\Backend\Base\Contracts\Bus\Dispatcher');

$result = $commandDispatcher->dispatchFromArray(
    'Darryldecode\Backend\Components\Navigation\Commands\ListCustomNavigationCommand',
    array(
        'id' => 1, // (required) int.
    )
);
$result->isSuccessful(); // check if the command transaction was successful or not
$result->getStatusCode(); // the status code Ex 400,200,201 etc
$result->getData(); // the data or set of results
$result->getMessage(); // the message (success or error)
More documentation coming soon or you may help us improve the docs by making pull request here: https://github.com/darryldecode/laravelbackend-site