Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
c7a1c7d7
Commit
c7a1c7d7
authored
Aug 16, 2016
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ship a console routes file by default.
🌊
parent
57b57bf1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
37 deletions
+20
-37
app/Console/Commands/Inspire.php
+0
-33
app/Console/Kernel.php
+2
-4
routes/console.php
+18
-0
No files found.
app/Console/Commands/Inspire.php
deleted
100644 → 0
View file @
57b57bf1
<?php
namespace
App\Console\Commands
;
use
Illuminate\Console\Command
;
use
Illuminate\Foundation\Inspiring
;
class
Inspire
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'inspire'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Display an inspiring quote'
;
/**
* Execute the console command.
*
* @return mixed
*/
public
function
handle
()
{
$this
->
comment
(
PHP_EOL
.
Inspiring
::
quote
()
.
PHP_EOL
);
}
}
app/Console/Kernel.php
View file @
c7a1c7d7
...
...
@@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel
* @var array
*/
protected
$commands
=
[
//
Commands\Inspire::class,
//
];
/**
...
...
@@ -35,8 +35,6 @@ class Kernel extends ConsoleKernel
*/
protected
function
commands
()
{
// $this->command('build {project}', function ($project) {
// $this->info('Building project...');
// });
require
base_path
(
'routes/console.php'
);
}
}
routes/console.php
0 → 100644
View file @
c7a1c7d7
<?php
use
Illuminate\Foundation\Inspiring
;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan
::
command
(
'inspire'
,
function
()
{
$this
->
comment
(
Inspiring
::
quote
());
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment