PHP code example of raiolanetworks / atlas

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

    

raiolanetworks / atlas example snippets


use Raiolanetworks\Atlas\Models\Country;

class MyClass
{
	public function getAllAfricaCountries(): Collection
	{
		Country::whereRegion('Africa')
			->orderBy('name')
			->get();
		}
}

bash
php artisan vendor:publish --tag="atlas-migrations"
bash
php artisan vendor:publish --tag="atlas-config"
bash
php artisan vendor:publish --tag="atlas-jsons"
bash
php artisan atlas:install