Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced /home with /dashboard #267

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ import ExampleComponent from './components/ExampleComponent.vue';
Vue.component('example-component', ExampleComponent);
```

To use the component in your application, you may drop it into one of your HTML templates. For example, after running the `php artisan ui vue --auth` Artisan command to scaffold your application's authentication and registration screens, you could drop the component into the `home.blade.php` Blade template:
To use the component in your application, you may drop it into one of your HTML templates. For example, after running the `php artisan ui vue --auth` Artisan command to scaffold your application's authentication and registration screens, you could drop the component into the `dashboard.blade.php` Blade template:

```blade
@extends('layouts.app')
Expand Down
2 changes: 1 addition & 1 deletion auth-backend/RedirectsUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public function redirectPath()
return $this->redirectTo();
}

return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home';
return property_exists($this, 'redirectTo') ? $this->redirectTo : '/dashboard';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace {{namespace}}Http\Controllers;

use Illuminate\Http\Request;

class HomeController extends Controller
class DashboardController extends Controller
{
/**
* Create a new controller instance.
Expand All @@ -23,6 +23,6 @@ class HomeController extends Controller
*/
public function index()
{
return view('home');
return view('dashboard');
}
}
2 changes: 1 addition & 1 deletion src/Auth/stubs/routes.stub
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

Auth::routes();

Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::get('/dashboard', [App\Http\Controllers\DashboardController::class, 'index'])->name('dashboard');
10 changes: 5 additions & 5 deletions src/AuthCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AuthCommand extends Command
'auth/passwords/reset.stub' => 'auth/passwords/reset.blade.php',
'auth/register.stub' => 'auth/register.blade.php',
'auth/verify.stub' => 'auth/verify.blade.php',
'home.stub' => 'home.blade.php',
'dashboard.stub' => 'dashboard.blade.php',
'layouts/app.stub' => 'layouts/app.blade.php',
];

Expand Down Expand Up @@ -115,14 +115,14 @@ protected function exportBackend()
{
$this->callSilent('ui:controllers');

$controller = app_path('Http/Controllers/HomeController.php');
$controller = app_path('Http/Controllers/DashboardController.php');

if (file_exists($controller) && ! $this->option('force')) {
if ($this->components->confirm("The [HomeController.php] file already exists. Do you want to replace it?", true)) {
file_put_contents($controller, $this->compileStub('controllers/HomeController'));
if ($this->components->confirm("The [DashboardController.php] file already exists. Do you want to replace it?", true)) {
file_put_contents($controller, $this->compileStub('controllers/DashboardController'));
}
} else {
file_put_contents($controller, $this->compileStub('controllers/HomeController'));
file_put_contents($controller, $this->compileStub('controllers/DashboardController'));
}

$baseController = app_path('Http/Controllers/Controller.php');
Expand Down
2 changes: 1 addition & 1 deletion stubs/Auth/ConfirmPasswordController.stub
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ConfirmPasswordController extends Controller
*
* @var string
*/
protected $redirectTo = '/home';
protected $redirectTo = '/dashboard';

/**
* Create a new controller instance.
Expand Down
2 changes: 1 addition & 1 deletion stubs/Auth/LoginController.stub
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class LoginController extends Controller
*
* @var string
*/
protected $redirectTo = '/home';
protected $redirectTo = '/dashboard';

/**
* Create a new controller instance.
Expand Down
2 changes: 1 addition & 1 deletion stubs/Auth/RegisterController.stub
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RegisterController extends Controller
*
* @var string
*/
protected $redirectTo = '/home';
protected $redirectTo = '/dashboard';

/**
* Create a new controller instance.
Expand Down
2 changes: 1 addition & 1 deletion stubs/Auth/ResetPasswordController.stub
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ class ResetPasswordController extends Controller
*
* @var string
*/
protected $redirectTo = '/home';
protected $redirectTo = '/dashboard';
}
2 changes: 1 addition & 1 deletion stubs/Auth/VerificationController.stub
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class VerificationController extends Controller
*
* @var string
*/
protected $redirectTo = '/home';
protected $redirectTo = '/dashboard';

/**
* Create a new controller instance.
Expand Down