PHP code example of mindedge / blade

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

    

mindedge / blade example snippets



use  Mindedge\Blade\Application;

$app = new Application(
    dirname(__DIR__)
);

$app->withFacades();

//$app->withEloquent();



//Nothing Below These Two Lines!
$app->boot();

return $app;




return [

    'paths' => [
        './views'
    ],

    'compiled' => './cache',

];


|...
|
|-config
|   |
|   view.php
|   database.php
|-boostrap
|   |
|   app.php
|-cache
|-views
|   |
|   welcome.blade.php
|
|...

//boostrap/app.php 

$app->register('Acme\Company\AcmeServiceProvider');


//bootstrap/app.php

$app->withFacades(true, ['Acme\Company\AcmeService' => 'AcmeService']);

//bootstrap/app.php

$app->configure('name_of_config_file');