Skip to content
Open
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
3 changes: 2 additions & 1 deletion src/stubs/Model/PasswordResetMigration.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

Expand All @@ -26,6 +27,6 @@ class Create{{singularClass}}PasswordResetsTable extends Migration
*/
public function down()
{
Schema::drop('{{singularSnake}}_password_resets');
Schema::dropIfExists('{{singularSnake}}_password_resets');
}
}
3 changes: 2 additions & 1 deletion src/stubs/Model/migration.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

Expand Down Expand Up @@ -29,6 +30,6 @@ class Create{{pluralClass}}Table extends Migration
*/
public function down()
{
Schema::drop('{{pluralSnake}}');
Schema::dropIfExists('{{pluralSnake}}');
}
}
2 changes: 1 addition & 1 deletion src/stubs/Notifications/ResetPassword.stub
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class {{singularClass}}ResetPassword extends Notification
public function toMail($notifiable)
{
return (new MailMessage)
->line('You are receiving this email because we received a password reset request for your account.')
->line('You are receiving this email because we received a password reset request for your {{singularSnake}} account.')
->action('Reset Password', url('{{singularSnake}}/password/reset', $this->token))
->line('If you did not request a password reset, no further action is required.');
}
Expand Down
6 changes: 6 additions & 0 deletions src/stubs/domain-routes/web.stub
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

/*
|--------------------------------------------------------------------------
| {{singularClass}} Routes
|--------------------------------------------------------------------------
*/

Route::group(['domain' => '{{singularSlug}}.' . env('APP_DOMAIN')], function () {
Route::get('/login', '{{singularClass}}Auth\LoginController@showLoginForm');
Route::post('/login', '{{singularClass}}Auth\LoginController@login');
Expand Down
1 change: 1 addition & 0 deletions src/stubs/domain-views/layout/auth.blade.stub
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<li><a href="{{ url('/{{singularSlug}}/login') }}">Login</a></li>
<li><a href="{{ url('/{{singularSlug}}/register') }}">Register</a></li>
@else
<!-- Authenticated Users -->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
{{ Auth::user()->name }} <span class="caret"></span>
Expand Down
6 changes: 6 additions & 0 deletions src/stubs/routes/routes.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/*
|--------------------------------------------------------------------------
| {{singularSnake}} Routes
|--------------------------------------------------------------------------
*/

Route::get('/home', function () {
$users[] = Auth::user();
$users[] = Auth::guard()->user();
Expand Down
6 changes: 6 additions & 0 deletions src/stubs/routes/web.stub
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

/*
|--------------------------------------------------------------------------
| {{singularClass}} Routes
|--------------------------------------------------------------------------
*/

Route::group(['prefix' => '{{singularSlug}}'], function () {
Route::get('/login', '{{singularClass}}Auth\LoginController@showLoginForm')->name('login');
Route::post('/login', '{{singularClass}}Auth\LoginController@login');
Expand Down