@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Http\Controllers\Auth; |
4 | 4 | |
5 | -use App\User; |
|
6 | 5 | use App\Http\Controllers\Controller; |
7 | -use Illuminate\Support\Facades\Validator; |
|
6 | +use App\User; |
|
8 | 7 | use Illuminate\Foundation\Auth\RegistersUsers; |
8 | +use Illuminate\Support\Facades\Validator; |
|
9 | 9 | |
10 | 10 | class RegisterController extends Controller |
11 | 11 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | -use DB; |
|
6 | 5 | use App\Snippet; |
6 | +use DB; |
|
7 | 7 | |
8 | 8 | class SnippetsController extends Controller |
9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace App; |
4 | 4 | |
5 | -use Illuminate\Notifications\Notifiable; |
|
6 | 5 | use Illuminate\Foundation\Auth\User as Authenticatable; |
6 | +use Illuminate\Notifications\Notifiable; |
|
7 | 7 | |
8 | 8 | class User extends Authenticatable |
9 | 9 | { |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Illuminate\Support\Facades\Schema; |
|
4 | -use Illuminate\Database\Schema\Blueprint; |
|
5 | 3 | use Illuminate\Database\Migrations\Migration; |
4 | +use Illuminate\Database\Schema\Blueprint; |
|
5 | +use Illuminate\Support\Facades\Schema; |
|
6 | 6 | |
7 | 7 | class CreateUsersTable extends Migration |
8 | 8 | { |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Illuminate\Support\Facades\Schema; |
|
4 | -use Illuminate\Database\Schema\Blueprint; |
|
5 | 3 | use Illuminate\Database\Migrations\Migration; |
4 | +use Illuminate\Database\Schema\Blueprint; |
|
5 | +use Illuminate\Support\Facades\Schema; |
|
6 | 6 | |
7 | 7 | class CreatePasswordResetsTable extends Migration |
8 | 8 | { |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Illuminate\Support\Facades\Schema; |
|
4 | -use Illuminate\Database\Schema\Blueprint; |
|
5 | 3 | use Illuminate\Database\Migrations\Migration; |
4 | +use Illuminate\Database\Schema\Blueprint; |
|
5 | +use Illuminate\Support\Facades\Schema; |
|
6 | 6 | |
7 | 7 | class CreateSnippetsTable extends Migration |
8 | 8 | { |
@@ -22,8 +22,8 @@ |
||
22 | 22 | $table->timestamps(); |
23 | 23 | |
24 | 24 | $table->foreign('user_id') |
25 | - ->references('id')->on('users') |
|
26 | - ->onDelete('cascade'); |
|
25 | + ->references('id')->on('users') |
|
26 | + ->onDelete('cascade'); |
|
27 | 27 | }); |
28 | 28 | } |
29 | 29 |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Illuminate\Support\Facades\Schema; |
|
4 | -use Illuminate\Database\Schema\Blueprint; |
|
5 | 3 | use Illuminate\Database\Migrations\Migration; |
4 | +use Illuminate\Database\Schema\Blueprint; |
|
5 | +use Illuminate\Support\Facades\Schema; |
|
6 | 6 | |
7 | 7 | class CreateSnippetsVotes extends Migration |
8 | 8 | { |
@@ -20,12 +20,12 @@ |
||
20 | 20 | $table->timestamps(); |
21 | 21 | |
22 | 22 | $table->foreign('user_id') |
23 | - ->references('id')->on('users') |
|
24 | - ->onDelete('cascade'); |
|
23 | + ->references('id')->on('users') |
|
24 | + ->onDelete('cascade'); |
|
25 | 25 | |
26 | 26 | $table->foreign('snippet_id') |
27 | - ->references('id')->on('snippets') |
|
28 | - ->onDelete('cascade'); |
|
27 | + ->references('id')->on('snippets') |
|
28 | + ->onDelete('cascade'); |
|
29 | 29 | }); |
30 | 30 | } |
31 | 31 |