Skip to content
This repository was archived by the owner on Jan 10, 2020. It is now read-only.

Commit 14d9f01

Browse files
committed
Route issue and Better docs
1 parent 38774b4 commit 14d9f01

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"require-dev": {
2626
"mockery/mockery": "^0.9.4",
2727
"mikey179/vfsStream": "^1.6",
28-
"orchestra/testbench": "3.4.*|3.4-dev"
28+
"orchestra/testbench": "3.4.*|3.4-dev",
29+
"phpunit/phpunit": "^6.0"
2930
},
3031
"autoload": {
3132
"psr-4": {

src/Console/Semantic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function handle()
6363
$this->comment('cd semantic && gulp build');
6464

6565
$this->info("\nThen run:");
66-
$this->comment('cd ../ && gulp');
66+
$this->comment('cd ../ && npm run dev');
6767

6868
$this->info("\nMake sure you set the PagesController@dashboard to use the following view:");
6969
$this->comment("'dashboard.main'");

src/Console/Starter.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ public function handle()
8989
$this->info("Build something worth sharing!\n");
9090

9191
if ($this->confirm('Would you like to run the migration?')) {
92-
exec('cd '.base_path().' && composer dump-autoload');
92+
$this->comment('Running command: cd '.base_path().' && composer dump ...');
93+
94+
exec('cd '.base_path().' && composer dump');
95+
9396
// execute migrate artisan command
94-
Artisan::call('migrate', [
95-
'--seed' => true,
96-
]);
97+
Artisan::call('migrate');
98+
Artisan::call('db:seed');
9799
} else {
98100
$this->info("Don't forget to run:");
99101
$this->comment('composer dump');

src/Packages/Starter/routes/web.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@
2626
| Login/ Logout/ Password
2727
|--------------------------------------------------------------------------
2828
*/
29-
Route::get('login', 'Auth\LoginController@showLoginForm');
29+
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
3030
Route::post('login', 'Auth\LoginController@login');
31-
Route::get('logout', 'Auth\LoginController@logout');
31+
Route::get('logout', 'Auth\LoginController@logout')->name('logout');
3232

3333
// Password Reset Routes...
34-
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm');
35-
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
36-
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm');
34+
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
35+
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
36+
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
3737
Route::post('password/reset', 'Auth\ResetPasswordController@reset');
3838

3939
/*
4040
|--------------------------------------------------------------------------
4141
| Registration & Activation
4242
|--------------------------------------------------------------------------
4343
*/
44-
Route::get('register', 'Auth\RegisterController@showRegistrationForm');
44+
Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
4545
Route::post('register', 'Auth\RegisterController@register');
4646

4747
Route::get('activate/token/{token}', 'Auth\ActivateController@activate');

0 commit comments

Comments
 (0)