Browse Source

Delete most unused Laravel stuff

master
Les De Ridder 8 months ago
parent
commit
139a9b07af

+ 0
- 32
app/Http/Controllers/Auth/ForgotPasswordController.php View File

@@ -1,32 +0,0 @@
1
-<?php
2
-
3
-namespace App\Http\Controllers\Auth;
4
-
5
-use App\Http\Controllers\Controller;
6
-use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
7
-
8
-class ForgotPasswordController extends Controller
9
-{
10
-    /*
11
-    |--------------------------------------------------------------------------
12
-    | Password Reset Controller
13
-    |--------------------------------------------------------------------------
14
-    |
15
-    | This controller is responsible for handling password reset emails and
16
-    | includes a trait which assists in sending these notifications from
17
-    | your application to your users. Feel free to explore this trait.
18
-    |
19
-    */
20
-
21
-    use SendsPasswordResetEmails;
22
-
23
-    /**
24
-     * Create a new controller instance.
25
-     *
26
-     * @return void
27
-     */
28
-    public function __construct()
29
-    {
30
-        $this->middleware('guest');
31
-    }
32
-}

+ 0
- 39
app/Http/Controllers/Auth/LoginController.php View File

@@ -1,39 +0,0 @@
1
-<?php
2
-
3
-namespace App\Http\Controllers\Auth;
4
-
5
-use App\Http\Controllers\Controller;
6
-use Illuminate\Foundation\Auth\AuthenticatesUsers;
7
-
8
-class LoginController extends Controller
9
-{
10
-    /*
11
-    |--------------------------------------------------------------------------
12
-    | Login Controller
13
-    |--------------------------------------------------------------------------
14
-    |
15
-    | This controller handles authenticating users for the application and
16
-    | redirecting them to your home screen. The controller uses a trait
17
-    | to conveniently provide its functionality to your applications.
18
-    |
19
-    */
20
-
21
-    use AuthenticatesUsers;
22
-
23
-    /**
24
-     * Where to redirect users after login.
25
-     *
26
-     * @var string
27
-     */
28
-    protected $redirectTo = '/home';
29
-
30
-    /**
31
-     * Create a new controller instance.
32
-     *
33
-     * @return void
34
-     */
35
-    public function __construct()
36
-    {
37
-        $this->middleware('guest')->except('logout');
38
-    }
39
-}

+ 0
- 72
app/Http/Controllers/Auth/RegisterController.php View File

@@ -1,72 +0,0 @@
1
-<?php
2
-
3
-namespace App\Http\Controllers\Auth;
4
-
5
-use App\User;
6
-use App\Http\Controllers\Controller;
7
-use Illuminate\Support\Facades\Hash;
8
-use Illuminate\Support\Facades\Validator;
9
-use Illuminate\Foundation\Auth\RegistersUsers;
10
-
11
-class RegisterController extends Controller
12
-{
13
-    /*
14
-    |--------------------------------------------------------------------------
15
-    | Register Controller
16
-    |--------------------------------------------------------------------------
17
-    |
18
-    | This controller handles the registration of new users as well as their
19
-    | validation and creation. By default this controller uses a trait to
20
-    | provide this functionality without requiring any additional code.
21
-    |
22
-    */
23
-
24
-    use RegistersUsers;
25
-
26
-    /**
27
-     * Where to redirect users after registration.
28
-     *
29
-     * @var string
30
-     */
31
-    protected $redirectTo = '/home';
32
-
33
-    /**
34
-     * Create a new controller instance.
35
-     *
36
-     * @return void
37
-     */
38
-    public function __construct()
39
-    {
40
-        $this->middleware('guest');
41
-    }
42
-
43
-    /**
44
-     * Get a validator for an incoming registration request.
45
-     *
46
-     * @param  array  $data
47
-     * @return \Illuminate\Contracts\Validation\Validator
48
-     */
49
-    protected function validator(array $data)
50
-    {
51
-        return Validator::make($data, [
52
-            'name' => 'required|string|max:255',
53
-            'email' => 'required|string|email|max:255|unique:users',
54
-            'password' => 'required|string|min:6|confirmed',
55
-        ]);
56
-    }
57
-
58
-    /**
59
-     * Create a new user instance after a valid registration.
60
-     *
61
-     * @param  array  $data
62
-     * @return \App\User
63
-     */
64
-    protected function create(array $data)
65
-    {
66
-        return User::create([
67
-            'name' => $data['name'],
68
-            'email' => $data['email'],
69
-            'password' => Hash::make($data['password']),
70
-        ]);
71
-    }
72
-}

+ 0
- 39
app/Http/Controllers/Auth/ResetPasswordController.php View File

@@ -1,39 +0,0 @@
1
-<?php
2
-
3
-namespace App\Http\Controllers\Auth;
4
-
5
-use App\Http\Controllers\Controller;
6
-use Illuminate\Foundation\Auth\ResetsPasswords;
7
-
8
-class ResetPasswordController extends Controller
9
-{
10
-    /*
11
-    |--------------------------------------------------------------------------
12
-    | Password Reset Controller
13
-    |--------------------------------------------------------------------------
14
-    |
15
-    | This controller is responsible for handling password reset requests
16
-    | and uses a simple trait to include this behavior. You're free to
17
-    | explore this trait and override any methods you wish to tweak.
18
-    |
19
-    */
20
-
21
-    use ResetsPasswords;
22
-
23
-    /**
24
-     * Where to redirect users after resetting their password.
25
-     *
26
-     * @var string
27
-     */
28
-    protected $redirectTo = '/home';
29
-
30
-    /**
31
-     * Create a new controller instance.
32
-     *
33
-     * @return void
34
-     */
35
-    public function __construct()
36
-    {
37
-        $this->middleware('guest');
38
-    }
39
-}

+ 0
- 41
app/Http/Controllers/Auth/VerificationController.php View File

@@ -1,41 +0,0 @@
1
-<?php
2
-
3
-namespace App\Http\Controllers\Auth;
4
-
5
-use App\Http\Controllers\Controller;
6
-use Illuminate\Foundation\Auth\VerifiesEmails;
7
-
8
-class VerificationController extends Controller
9
-{
10
-    /*
11
-    |--------------------------------------------------------------------------
12
-    | Email Verification Controller
13
-    |--------------------------------------------------------------------------
14
-    |
15
-    | This controller is responsible for handling email verification for any
16
-    | user that recently registered with the application. Emails may also
17
-    | be re-sent if the user didn't receive the original email message.
18
-    |
19
-    */
20
-
21
-    use VerifiesEmails;
22
-
23
-    /**
24
-     * Where to redirect users after verification.
25
-     *
26
-     * @var string
27
-     */
28
-    protected $redirectTo = '/home';
29
-
30
-    /**
31
-     * Create a new controller instance.
32
-     *
33
-     * @return void
34
-     */
35
-    public function __construct()
36
-    {
37
-        $this->middleware('auth');
38
-        $this->middleware('signed')->only('verify');
39
-        $this->middleware('throttle:6,1')->only('verify', 'resend');
40
-    }
41
-}

+ 0
- 5
app/Http/Kernel.php View File

@@ -18,7 +18,6 @@ class Kernel extends HttpKernel
18 18
         \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
19 19
         \App\Http\Middleware\TrimStrings::class,
20 20
         \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
21
-        \App\Http\Middleware\TrustProxies::class,
22 21
     ];
23 22
 
24 23
     /**
@@ -31,7 +30,6 @@ class Kernel extends HttpKernel
31 30
             \App\Http\Middleware\EncryptCookies::class,
32 31
             \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
33 32
             \Illuminate\Session\Middleware\StartSession::class,
34
-            // \Illuminate\Session\Middleware\AuthenticateSession::class,
35 33
             \Illuminate\View\Middleware\ShareErrorsFromSession::class,
36 34
             \App\Http\Middleware\VerifyCsrfToken::class,
37 35
             \Illuminate\Routing\Middleware\SubstituteBindings::class,
@@ -51,12 +49,10 @@ class Kernel extends HttpKernel
51 49
      * @var array
52 50
      */
53 51
     protected $routeMiddleware = [
54
-        'auth' => \App\Http\Middleware\Authenticate::class,
55 52
         'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
56 53
         'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
57 54
         'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
58 55
         'can' => \Illuminate\Auth\Middleware\Authorize::class,
59
-        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
60 56
         'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
61 57
         'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
62 58
         'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
@@ -72,7 +68,6 @@ class Kernel extends HttpKernel
72 68
     protected $middlewarePriority = [
73 69
         \Illuminate\Session\Middleware\StartSession::class,
74 70
         \Illuminate\View\Middleware\ShareErrorsFromSession::class,
75
-        \App\Http\Middleware\Authenticate::class,
76 71
         \Illuminate\Session\Middleware\AuthenticateSession::class,
77 72
         \Illuminate\Routing\Middleware\SubstituteBindings::class,
78 73
         \Illuminate\Auth\Middleware\Authorize::class,

+ 0
- 19
app/Http/Middleware/Authenticate.php View File

@@ -1,19 +0,0 @@
1
-<?php
2
-
3
-namespace App\Http\Middleware;
4
-
5
-use Illuminate\Auth\Middleware\Authenticate as Middleware;
6
-
7
-class Authenticate extends Middleware
8
-{
9
-    /**
10
-     * Get the path the user should be redirected to when they are not authenticated.
11
-     *
12
-     * @param  \Illuminate\Http\Request  $request
13
-     * @return string
14
-     */
15
-    protected function redirectTo($request)
16
-    {
17
-        return route('login');
18
-    }
19
-}

+ 0
- 26
app/Http/Middleware/RedirectIfAuthenticated.php View File

@@ -1,26 +0,0 @@
1
-<?php
2
-
3
-namespace App\Http\Middleware;
4
-
5
-use Closure;
6
-use Illuminate\Support\Facades\Auth;
7
-
8
-class RedirectIfAuthenticated
9
-{
10
-    /**
11
-     * Handle an incoming request.
12
-     *
13
-     * @param  \Illuminate\Http\Request  $request
14
-     * @param  \Closure  $next
15
-     * @param  string|null  $guard
16
-     * @return mixed
17
-     */
18
-    public function handle($request, Closure $next, $guard = null)
19
-    {
20
-        if (Auth::guard($guard)->check()) {
21
-            return redirect('/home');
22
-        }
23
-
24
-        return $next($request);
25
-    }
26
-}

+ 0
- 23
app/Http/Middleware/TrustProxies.php View File

@@ -1,23 +0,0 @@
1
-<?php
2
-
3
-namespace App\Http\Middleware;
4
-
5
-use Illuminate\Http\Request;
6
-use Fideloper\Proxy\TrustProxies as Middleware;
7
-
8
-class TrustProxies extends Middleware
9
-{
10
-    /**
11
-     * The trusted proxies for this application.
12
-     *
13
-     * @var array
14
-     */
15
-    protected $proxies;
16
-
17
-    /**
18
-     * The headers that should be used to detect proxies.
19
-     *
20
-     * @var int
21
-     */
22
-    protected $headers = Request::HEADER_X_FORWARDED_ALL;
23
-}

+ 0
- 30
app/Providers/AuthServiceProvider.php View File

@@ -1,30 +0,0 @@
1
-<?php
2
-
3
-namespace App\Providers;
4
-
5
-use Illuminate\Support\Facades\Gate;
6
-use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
7
-
8
-class AuthServiceProvider extends ServiceProvider
9
-{
10
-    /**
11
-     * The policy mappings for the application.
12
-     *
13
-     * @var array
14
-     */
15
-    protected $policies = [
16
-        'App\Model' => 'App\Policies\ModelPolicy',
17
-    ];
18
-
19
-    /**
20
-     * Register any authentication / authorization services.
21
-     *
22
-     * @return void
23
-     */
24
-    public function boot()
25
-    {
26
-        $this->registerPolicies();
27
-
28
-        //
29
-    }
30
-}

+ 0
- 21
app/Providers/BroadcastServiceProvider.php View File

@@ -1,21 +0,0 @@
1
-<?php
2
-
3
-namespace App\Providers;
4
-
5
-use Illuminate\Support\ServiceProvider;
6
-use Illuminate\Support\Facades\Broadcast;
7
-
8
-class BroadcastServiceProvider extends ServiceProvider
9
-{
10
-    /**
11
-     * Bootstrap any application services.
12
-     *
13
-     * @return void
14
-     */
15
-    public function boot()
16
-    {
17
-        Broadcast::routes();
18
-
19
-        require base_path('routes/channels.php');
20
-    }
21
-}

+ 0
- 17
app/Providers/RouteServiceProvider.php View File

@@ -35,8 +35,6 @@ class RouteServiceProvider extends ServiceProvider
35 35
      */
36 36
     public function map()
37 37
     {
38
-        $this->mapApiRoutes();
39
-
40 38
         $this->mapWebRoutes();
41 39
 
42 40
         //
@@ -55,19 +53,4 @@ class RouteServiceProvider extends ServiceProvider
55 53
              ->namespace($this->namespace)
56 54
              ->group(base_path('routes/web.php'));
57 55
     }
58
-
59
-    /**
60
-     * Define the "api" routes for the application.
61
-     *
62
-     * These routes are typically stateless.
63
-     *
64
-     * @return void
65
-     */
66
-    protected function mapApiRoutes()
67
-    {
68
-        Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
72
-    }
73 56
 }

+ 0
- 30
app/User.php View File

@@ -1,30 +0,0 @@
1
-<?php
2
-
3
-namespace App;
4
-
5
-use Illuminate\Notifications\Notifiable;
6
-use Illuminate\Contracts\Auth\MustVerifyEmail;
7
-use Illuminate\Foundation\Auth\User as Authenticatable;
8
-
9
-class User extends Authenticatable
10
-{
11
-    use Notifiable;
12
-
13
-    /**
14
-     * The attributes that are mass assignable.
15
-     *
16
-     * @var array
17
-     */
18
-    protected $fillable = [
19
-        'name', 'email', 'password',
20
-    ];
21
-
22
-    /**
23
-     * The attributes that should be hidden for arrays.
24
-     *
25
-     * @var array
26
-     */
27
-    protected $hidden = [
28
-        'password', 'remember_token',
29
-    ];
30
-}

+ 0
- 7
config/app.php View File

@@ -137,9 +137,6 @@ return [
137 137
         /*
138 138
          * Laravel Framework Service Providers...
139 139
          */
140
-        Illuminate\Auth\AuthServiceProvider::class,
141
-        Illuminate\Broadcasting\BroadcastServiceProvider::class,
142
-        Illuminate\Bus\BusServiceProvider::class,
143 140
         Illuminate\Cache\CacheServiceProvider::class,
144 141
         Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
145 142
         Illuminate\Cookie\CookieServiceProvider::class,
@@ -153,8 +150,6 @@ return [
153 150
         Illuminate\Pagination\PaginationServiceProvider::class,
154 151
         Illuminate\Pipeline\PipelineServiceProvider::class,
155 152
         Illuminate\Queue\QueueServiceProvider::class,
156
-        Illuminate\Redis\RedisServiceProvider::class,
157
-        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
158 153
         Illuminate\Session\SessionServiceProvider::class,
159 154
         Illuminate\Translation\TranslationServiceProvider::class,
160 155
         Illuminate\Validation\ValidationServiceProvider::class,
@@ -168,8 +163,6 @@ return [
168 163
          * Application Service Providers...
169 164
          */
170 165
         App\Providers\AppServiceProvider::class,
171
-        App\Providers\AuthServiceProvider::class,
172
-        // App\Providers\BroadcastServiceProvider::class,
173 166
         App\Providers\EventServiceProvider::class,
174 167
         App\Providers\RouteServiceProvider::class,
175 168
 

+ 0
- 59
config/broadcasting.php View File

@@ -1,59 +0,0 @@
1
-<?php
2
-
3
-return [
4
-
5
-    /*
6
-    |--------------------------------------------------------------------------
7
-    | Default Broadcaster
8
-    |--------------------------------------------------------------------------
9
-    |
10
-    | This option controls the default broadcaster that will be used by the
11
-    | framework when an event needs to be broadcast. You may set this to
12
-    | any of the connections defined in the "connections" array below.
13
-    |
14
-    | Supported: "pusher", "redis", "log", "null"
15
-    |
16
-    */
17
-
18
-    'default' => env('BROADCAST_DRIVER', 'null'),
19
-
20
-    /*
21
-    |--------------------------------------------------------------------------
22
-    | Broadcast Connections
23
-    |--------------------------------------------------------------------------
24
-    |
25
-    | Here you may define all of the broadcast connections that will be used
26
-    | to broadcast events to other systems or over websockets. Samples of
27
-    | each available type of connection are provided inside this array.
28
-    |
29
-    */
30
-
31
-    'connections' => [
32
-
33
-        'pusher' => [
34
-            'driver' => 'pusher',
35
-            'key' => env('PUSHER_APP_KEY'),
36
-            'secret' => env('PUSHER_APP_SECRET'),
37
-            'app_id' => env('PUSHER_APP_ID'),
38
-            'options' => [
39
-                'cluster' => env('PUSHER_APP_CLUSTER'),
40
-                'encrypted' => true,
41
-            ],
42
-        ],
43
-
44
-        'redis' => [
45
-            'driver' => 'redis',
46
-            'connection' => 'default',
47
-        ],
48
-
49
-        'log' => [
50
-            'driver' => 'log',
51
-        ],
52
-
53
-        'null' => [
54
-            'driver' => 'null',
55
-        ],
56
-
57
-    ],
58
-
59
-];

+ 0
- 24
database/factories/UserFactory.php View File

@@ -1,24 +0,0 @@
1
-<?php
2
-
3
-use Faker\Generator as Faker;
4
-
5
-/*
6
-|--------------------------------------------------------------------------
7
-| Model Factories
8
-|--------------------------------------------------------------------------
9
-|
10
-| This directory should contain each of the model factory definitions for
11
-| your application. Factories provide a convenient way to generate new
12
-| model instances for testing / seeding your application's database.
13
-|
14
-*/
15
-
16
-$factory->define(App\User::class, function (Faker $faker) {
17
-    return [
18
-        'name' => $faker->name,
19
-        'email' => $faker->unique()->safeEmail,
20
-        'email_verified_at' => now(),
21
-        'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
22
-        'remember_token' => str_random(10),
23
-    ];
24
-});

+ 0
- 36
database/migrations/2014_10_12_000000_create_users_table.php View File

@@ -1,36 +0,0 @@
1
-<?php
2
-
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5
-use Illuminate\Database\Migrations\Migration;
6
-
7
-class CreateUsersTable extends Migration
8
-{
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create('users', function (Blueprint $table) {
17
-            $table->increments('id');
18
-            $table->string('name');
19
-            $table->string('email')->unique();
20
-            $table->timestamp('email_verified_at')->nullable();
21
-            $table->string('password');
22
-            $table->rememberToken();
23
-            $table->timestamps();
24
-        });
25
-    }
26
-
27
-    /**
28
-     * Reverse the migrations.
29
-     *
30
-     * @return void
31
-     */
32
-    public function down()
33
-    {
34
-        Schema::dropIfExists('users');
35
-    }
36
-}

+ 0
- 32
database/migrations/2014_10_12_100000_create_password_resets_table.php View File

@@ -1,32 +0,0 @@
1
-<?php
2
-
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5
-use Illuminate\Database\Migrations\Migration;
6
-
7
-class CreatePasswordResetsTable extends Migration
8
-{
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create('password_resets', function (Blueprint $table) {
17
-            $table->string('email')->index();
18
-            $table->string('token');
19
-            $table->timestamp('created_at')->nullable();
20
-        });
21
-    }
22
-
23
-    /**
24
-     * Reverse the migrations.
25
-     *
26
-     * @return void
27
-     */
28
-    public function down()
29
-    {
30
-        Schema::dropIfExists('password_resets');
31
-    }
32
-}

+ 0
- 1
public/js/app.js
File diff suppressed because it is too large
View File


+ 0
- 22
resources/js/app.js View File

@@ -1,22 +0,0 @@
1
-
2
-/**
3
- * First we will load all of this project's JavaScript dependencies which
4
- * includes Vue and other libraries. It is a great starting point when
5
- * building robust, powerful web applications using Vue and Laravel.
6
- */
7
-
8
-require('./bootstrap');
9
-
10
-window.Vue = require('vue');
11
-
12
-/**
13
- * Next, we will create a fresh Vue application instance and attach it to
14
- * the page. Then, you may begin adding components to this application
15
- * or customize the JavaScript scaffolding to fit your unique needs.
16
- */
17
-
18
-Vue.component('example-component', require('./components/ExampleComponent.vue'));
19
-
20
-const app = new Vue({
21
-    el: '#app'
22
-});

+ 0
- 56
resources/js/bootstrap.js View File

@@ -1,56 +0,0 @@
1
-
2
-window._ = require('lodash');
3
-window.Popper = require('popper.js').default;
4
-
5
-/**
6
- * We'll load jQuery and the Bootstrap jQuery plugin which provides support
7
- * for JavaScript based Bootstrap features such as modals and tabs. This
8
- * code may be modified to fit the specific needs of your application.
9
- */
10
-
11
-try {
12
-    window.$ = window.jQuery = require('jquery');
13
-
14
-    require('bootstrap');
15
-} catch (e) {}
16
-
17
-/**
18
- * We'll load the axios HTTP library which allows us to easily issue requests
19
- * to our Laravel back-end. This library automatically handles sending the
20
- * CSRF token as a header based on the value of the "XSRF" token cookie.
21
- */
22
-
23
-window.axios = require('axios');
24
-
25
-window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
26
-
27
-/**
28
- * Next we will register the CSRF Token as a common header with Axios so that
29
- * all outgoing HTTP requests automatically have it attached. This is just
30
- * a simple convenience so we don't have to attach every token manually.
31
- */
32
-
33
-let token = document.head.querySelector('meta[name="csrf-token"]');
34
-
35
-if (token) {
36
-    window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
37
-} else {
38
-    console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
39
-}
40
-
41
-/**
42
- * Echo exposes an expressive API for subscribing to channels and listening
43
- * for events that are broadcast by Laravel. Echo and event broadcasting
44
- * allows your team to easily build robust real-time web applications.
45
- */
46
-
47
-// import Echo from 'laravel-echo'
48
-
49
-// window.Pusher = require('pusher-js');
50
-
51
-// window.Echo = new Echo({
52
-//     broadcaster: 'pusher',
53
-//     key: process.env.MIX_PUSHER_APP_KEY,
54
-//     cluster: process.env.MIX_PUSHER_APP_CLUSTER,
55
-//     encrypted: true
56
-// });

+ 0
- 23
resources/js/components/ExampleComponent.vue View File

@@ -1,23 +0,0 @@
1
-<template>
2
-    <div class="container">
3
-        <div class="row justify-content-center">
4
-            <div class="col-md-8">
5
-                <div class="card card-default">
6
-                    <div class="card-header">Example Component</div>
7
-
8
-                    <div class="card-body">
9
-                        I'm an example component.
10
-                    </div>
11
-                </div>
12
-            </div>
13
-        </div>
14
-    </div>
15
-</template>
16
-
17
-<script>
18
-    export default {
19
-        mounted() {
20
-            console.log('Component mounted.')
21
-        }
22
-    }
23
-</script>

+ 0
- 19
resources/lang/en/auth.php View File

@@ -1,19 +0,0 @@
1
-<?php
2
-
3
-return [
4
-
5
-    /*
6
-    |--------------------------------------------------------------------------
7
-    | Authentication Language Lines
8
-    |--------------------------------------------------------------------------
9
-    |
10
-    | The following language lines are used during authentication for various
11
-    | messages that we need to display to the user. You are free to modify
12
-    | these language lines according to your application's requirements.
13
-    |
14
-    */
15
-
16
-    'failed' => 'These credentials do not match our records.',
17
-    'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
18
-
19
-];

+ 0
- 19
resources/lang/en/pagination.php View File

@@ -1,19 +0,0 @@
1
-<?php
2
-
3
-return [
4
-
5
-    /*
6
-    |--------------------------------------------------------------------------
7
-    | Pagination Language Lines
8
-    |--------------------------------------------------------------------------
9
-    |
10
-    | The following language lines are used by the paginator library to build
11
-    | the simple pagination links. You are free to change them to anything
12
-    | you want to customize your views to better match your application.
13
-    |
14
-    */
15
-
16
-    'previous' => '« Previous',
17
-    'next' => 'Next »',
18
-
19
-];

+ 0
- 22
resources/lang/en/passwords.php View File

@@ -1,22 +0,0 @@
1
-<?php
2
-
3
-return [
4
-
5
-    /*
6
-    |--------------------------------------------------------------------------
7
-    | Password Reset Language Lines
8
-    |--------------------------------------------------------------------------
9
-    |
10
-    | The following language lines are the default lines which match reasons
11
-    | that are given by the password broker for a password update attempt
12
-    | has failed, such as for an invalid token or invalid new password.
13
-    |
14
-    */
15
-
16
-    'password' => 'Passwords must be at least six characters and match the confirmation.',
17
-    'reset' => 'Your password has been reset!',
18
-    'sent' => 'We have e-mailed your password reset link!',
19
-    'token' => 'This password reset token is invalid.',
20
-    'user' => "We can't find a user with that e-mail address.",
21
-
22
-];

+ 0
- 18
routes/api.php View File

@@ -1,18 +0,0 @@
1
-<?php
2
-
3
-use Illuminate\Http\Request;
4
-
5
-/*
6
-|--------------------------------------------------------------------------
7
-| API Routes
8
-|--------------------------------------------------------------------------
9
-|
10
-| Here is where you can register API routes for your application. These
11
-| routes are loaded by the RouteServiceProvider within a group which
12
-| is assigned the "api" middleware group. Enjoy building your API!
13
-|
14
-*/
15
-
16
-Route::middleware('auth:api')->get('/user', function (Request $request) {
17
-    return $request->user();
18
-});

+ 0
- 16
routes/channels.php View File

@@ -1,16 +0,0 @@
1
-<?php
2
-
3
-/*
4
-|--------------------------------------------------------------------------
5
-| Broadcast Channels
6
-|--------------------------------------------------------------------------
7
-|
8
-| Here you may register all of the event broadcasting channels that your
9
-| application supports. The given channel authorization callbacks are
10
-| used to check if an authenticated user can listen to the channel.
11
-|
12
-*/
13
-
14
-Broadcast::channel('App.User.{id}', function ($user, $id) {
15
-    return (int) $user->id === (int) $id;
16
-});

+ 0
- 21
tests/Feature/ExampleTest.php View File

@@ -1,21 +0,0 @@
1
-<?php
2
-
3
-namespace Tests\Feature;
4
-
5
-use Tests\TestCase;
6
-use Illuminate\Foundation\Testing\RefreshDatabase;
7
-
8
-class ExampleTest extends TestCase
9
-{
10
-    /**
11
-     * A basic test example.
12
-     *
13
-     * @return void
14
-     */
15
-    public function testBasicTest()
16
-    {
17
-        $response = $this->get('/');
18
-
19
-        $response->assertStatus(200);
20
-    }
21
-}

+ 0
- 19
tests/Unit/ExampleTest.php View File

@@ -1,19 +0,0 @@
1
-<?php
2
-
3
-namespace Tests\Unit;
4
-
5
-use Tests\TestCase;
6
-use Illuminate\Foundation\Testing\RefreshDatabase;
7
-
8
-class ExampleTest extends TestCase
9
-{
10
-    /**
11
-     * A basic test example.
12
-     *
13
-     * @return void
14
-     */
15
-    public function testBasicTest()
16
-    {
17
-        $this->assertTrue(true);
18
-    }
19
-}

+ 0
- 15
webpack.mix.js View File

@@ -1,15 +0,0 @@
1
-const mix = require('laravel-mix');
2
-
3
-/*
4
- |--------------------------------------------------------------------------
5
- | Mix Asset Management
6
- |--------------------------------------------------------------------------
7
- |
8
- | Mix provides a clean, fluent API for defining some Webpack build steps
9
- | for your Laravel application. By default, we are compiling the Sass
10
- | file for the application as well as bundling up all the JS files.
11
- |
12
- */
13
-
14
-mix.js('resources/js/app.js', 'public/js')
15
-   .sass('resources/sass/app.scss', 'public/css');

Loading…
Cancel
Save