null button(string $title, string $route)

Creates the an action button for your section. Usually used when you want a user to add an item.


This function requires setting the section name beforehand by using the section() function.



Title for your button.


URL route to the page.



route('/foo', function() {

   // Must set the section first
   section('Foo', '/foo');

   // Create an action menu
   button('Create', '/foo/bar');

   return view('index.html');