Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sohelamin committed Aug 17, 2020
1 parent 3ef0331 commit 27a3b25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ An admin panel for managing users, roles, permissions & crud.
4. You can generate CRUD easily through generator tool now.
Note: If you are using Laravel 7+ then scaffold the authentication with bootstrap for a better experience.
## Usage
Expand Down
10 changes: 4 additions & 6 deletions src/LaravelAdminCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use File;
use Illuminate\Console\Command;
use Symfony\Component\Process\Process;
use Illuminate\Database\QueryException;

class LaravelAdminCommand extends Command
{
Expand Down Expand Up @@ -41,12 +42,12 @@ public function handle()
{
try {
$this->call('migrate');
} catch (\Illuminate\Database\QueryException $e) {
} catch (QueryException $e) {
$this->error($e->getMessage());
exit();
}

if (\App::VERSION() >= '5.2' && \App::VERSION() < '6.0') {
if (\App::VERSION() < '6.0') {
$this->info("Generating the authentication scaffolding");
$this->call('make:auth');
}
Expand All @@ -64,10 +65,7 @@ public function handle()

$this->info("Adding the routes");

$routeFile = app_path('Http/routes.php');
if (\App::VERSION() >= '5.3') {
$routeFile = base_path('routes/web.php');
}
$routeFile = base_path('routes/web.php');

$routes =
<<<EOD
Expand Down

0 comments on commit 27a3b25

Please sign in to comment.