PHP code example of avto-dev / back2front-laravel

1. Go to this page and download the library: Download avto-dev/back2front-laravel 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/ */

    

avto-dev / back2front-laravel example snippets




backToFrontStack();



use AvtoDev\Back2Front\Back2FrontInterface;

/** @var Back2FrontInterface $service */
$service = resolve(Back2FrontInterface::class);



backToFrontStack()->put('user.name', 'John Doe');

backToFrontStack()->put('user_id', $user->id);