2017 © Pedro Peláez
 

library nice-artisan

Web interface for Laravel Artisan

image

bestmomo/nice-artisan

Web interface for Laravel Artisan

  • Sunday, February 4, 2018
  • by bestmomo
  • Repository
  • 12 Watchers
  • 164 Stars
  • 11,447 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 26 Forks
  • 8 Open issues
  • 14 Versions
  • 8 % Grown

The README.md

Nice Artisan

This package is to add a web interface for Laravel 5 and earlier Artisan., (*1)

Installation

Add Nice Artisan to your composer.json file :, (*2)

  • For Laravel 5.1
    composer require bestmomo/nice-artisan:0.3.*
  • For Laravel 5.2
    composer require bestmomo/nice-artisan:0.4.*
  • For Laravel 5.3
    composer require bestmomo/nice-artisan:0.5.*
  • For Laravel 5.4
    composer require bestmomo/nice-artisan:1.0.*
  • For Laravel 5.5
    composer require bestmomo/nice-artisan:^1.1
  • For Laravel ^6.0
    composer require bestmomo/nice-artisan:^1.2
  • For Laravel ^7.0
    composer require bestmomo/nice-artisan:^1.3
  • For Laravel ^8.0
    composer require bestmomo/nice-artisan:^1.4
  • For Laravel ^9.0
    composer require bestmomo/nice-artisan:^1.6
  • For Laravel ^10.0
    composer require bestmomo/nice-artisan:^1.7
  • For Laravel ^11.0
    composer require bestmomo/nice-artisan:^1.8
  • For Laravel ^12.0
    composer require bestmomo/nice-artisan

For Laravel < 5.5 the next required step is to add the service provider to config/app.php (for Laravel 5.5 there is the package discovery) :, (*3)

    Bestmomo\NiceArtisan\NiceArtisanServiceProvider::class,

Last copy the package config to your local config with the publish command:, (*4)

    php artisan vendor:publish --tag=niceartisan:config

You can change options and commands in config/commands.php. The menu is dynamically created with this config., (*5)

Now it must work with this url (you can also change it in the config file):, (*6)

    .../niceartisan

Middleware

If you want to use this package on a production application you must protect the urls with a middleware for your security !, (*7)

Add a route middleware to your application, for example :, (*8)

<?php

namespace App\Http\Middleware;

use Closure;

class NiceArtisan
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $user = $request->user();

        if ($user && $user->isAdmin()) {
            return $next($request);
        }

        return redirect('/');
    }
}

And register it in Kernel with nice_artisan name :, (*9)

'nice_artisan' => \App\Http\Middleware\NiceArtisan::class,

Before V1.6 this middleware will be automatically detected by package., (*10)

From V1.6 you must specify the middleware in the **commands configuration file :**, (*11)

'middlewares' => [
    'web',
    'nice_artisan',
],

Screenshots

nice-artisan1 nice-artisan2 nice-artisan3, (*12)

The Versions

04/02 2018

dev-master

9999999-dev http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

04/02 2018

V1.1.2

1.1.2.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

08/10 2017

V1.1.1

1.1.1.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

02/10 2017

V1.1.0

1.1.0.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

01/09 2017

V1.0.1

1.0.1.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

01/09 2017

v1.0.2

1.0.2.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

13/02 2017

v1.0.0

1.0.0.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

27/08 2016

v0.5.1

0.5.1.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

27/08 2016

v0.5.0

0.5.0.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

23/12 2015

v0.4.1

0.4.1.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

23/12 2015

v0.4

0.4.0.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

20/11 2015

v0.3

0.3.0.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

17/11 2015

v0.2

0.2.0.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires

 

08/11 2015

v0.1

0.1.0.0 http://github.com/bestmomo/nice-artisan

Web interface for Laravel Artisan

  Sources   Download

MIT

The Requires