1. Go to this page and download the library: Download kineticamobile/atrochar 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/ */
kineticamobile / atrochar example snippets
@menu("Dasboard")
@menu(1)
$menu = Menu::find(1);
[...]
@menu($menu)
/**
* @return bool
*/
public function canManageMenus()
{
// For example
return $this->hasRole('Admin');
}
/**
* @return bool
*/
public function canViewMenuItem($ability)
{
// For example
return $this->getAllPermissions()->pluck('name')->contains($ability);
}