Description
...
null sectionMenubutton(string $title, string $route)
...
Creates the main an action link button for your section. Usually used when you want a user to add an item.
...
Info | ||
---|---|---|
| ||
This function requires setting the section name beforehand by using the section() function. |
Parameters
...
$name
Title for the menuyour button.
$route
URL route to the page.
Examples
...
Code Block | ||
---|---|---|
| ||
<?php route('/foo', function() { // Must set the section first section('Foo', '/foo'); // Create an action menu sectionMenubutton('Create', '/foo/bar'); return view('index.html'); }); |