Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

196 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uccello

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Uccello is a Laravel Package for providing a way to make easily complete web applications. For the moment, this package can be integrated easily only on a fresh installation.

Installation

Via Composer

$ composer require uccello/uccello

If you are using Laravel 5.5 or above skip this step, but if aren't then add this code on config/app.php, on providers

'providers' => [
  ...
  Lord\Laroute\LarouteServiceProvider::class,
  Uccello\Core\Providers\AppServiceProvider::class,
  Uccello\Core\Providers\RouteServiceProvider::class,
  ...
],
...
'aliases' => [
  ...
  'Uccello' => Uccello\Core\Facades\Uccello::class,
],

And then run,

$ php artisan make:uccello

This command will extract needed views for auth, and errors.

Add check permissions middleware

Open app/Http/Kernel.php file and add the following code:

protected $routeMiddleware = [
  ...
  'uccello.permissions' => \Uccello\Core\Http\Middleware\CheckPermissions::class,
];

Generate routes for javascript

Uccello uses laroute to port the routes over to JavaScript. It is important to launch this command every times you modify the routes.

$ php artisan laroute:generate

It will generate the file public/js/laroute.js used by Uccello.

Migrate and seed the database

Configure .env file then run this command to migrate the database

$ php artisan migrate

Set the default routes

Add this code in routes/web.php

Route::get('/', function() {
    $domain = uccello()->useMultiDomains() ? uccello()->getLastOrDefaultDomain()->slug : null;
    $route = ucroute('uccello.home', $domain);
    return redirect($route);
});
...

If you don't want to use multi domains, add this code in .env

...
UCCELLO_MULTI_DOMAINS=false

Important : Don't forget to launch the command php artisan laroute:generate each times you change the value of UCCELLO_MULTI_DOMAINS.

Enjoy!

Go to your homepage. You must be redirected to the login page. You can easily sign in with the following credentials:

Login: admin@uccello.io
Password: admin

Testing

$ composer test

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email jonathan@uccellolabs.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Laravel Package providing a way to make easily complete web applications

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages