PHP code example of nazarene / backend

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

    

nazarene / backend example snippets


use Nazarene\Backend\Models\Church;

// Usando la clase directamente
$church = Church::find(1);

// O usando el contenedor de servicios
$church = app('nazarene.church')->find(1);
bash
php artisan vendor:publish --tag=nazarene-migrations
php artisan vendor:publish --tag=nazarene-seeders
php artisan vendor:publish --tag=nazarene-factories
php artisan vendor:publish --tag=nazarene-config
bash
php artisan nazarene:install --seed