PHP code example of devdojo / tails

1. Go to this page and download the library: Download devdojo/tails 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/ */

    

devdojo / tails example snippets


Tails::get('/', 'project-name');

Tails::get('/', 'my-website');

Tails::get('welcome', 'my-website');

Tails::get('about', 'my-website.about');

@tails('my-website');

@tails('my-website.about')

@tails('mywebsite.about:html')

@tails('my-website');
@tails('my-website:html');
@tails('my-website:header');
@tails('my-website:body');
@tails('my-website:footer');

@tails('my-website:project.title');
@tails('my-website:project.slug');
...

@tails('my-website:page.title');
@tails('my-website:page.slug');
...

<style>
    @tails('my-website:page.styles')
</style>

@tails('my-website')

php artisan tails:clear
bash
php artisan vendor:publish --tag=tails
shell
php artisan tails:ping