PHP code example of robotsinside / laravel-breadcrumbs
1. Go to this page and download the library: Download robotsinside/laravel-breadcrumbs 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/ */
robotsinside / laravel-breadcrumbs example snippets
/*
* Package Service Providers...
*/
\RobotsInside\Breadcrumbs\BreadcrumbsServiceProvider::class,
namespace App\Breadcrumbs\Labels;
use RobotsInside\Breadcrumbs\Label;
class PostBreadcrumbLabel extends Label
{
public function label()
{
return $this->model->whatever;
}
}
namespace App\Breadcrumbs\Mutators;
use RobotsInside\Breadcrumbs\Mutator;
class AdminMutator extends Mutator
{
public function mutate()
{
$this->remove(['admin']);
}
}
namespace App\Breadcrumbs\Mutators;
use RobotsInside\Breadcrumbs\Mutator;
class AddPostIndexMutator extends Mutator
{
public function mutate()
{
$this->add('All Posts', 'my-post', route('posts.index'));
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.