Skip to content

Commit e14ada5

Browse files
committed
Merge branch 'devel'
2 parents 3f8e011 + 386ea54 commit e14ada5

39 files changed

+2342
-1371
lines changed

app/Http/Controllers/Auth/RegisterController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace App\Http\Controllers\Auth;
44

55
use App\Http\Controllers\Controller;
6-
use App\User;
6+
use App\Models\User;
77
use Illuminate\Foundation\Auth\RegistersUsers;
88
use Illuminate\Support\Facades\Hash;
99
use Illuminate\Support\Facades\Validator;
@@ -59,7 +59,7 @@ protected function validator(array $data)
5959
* Create a new user instance after a valid registration.
6060
*
6161
* @param array $data
62-
* @return \App\User
62+
* @return \App\Models\User
6363
*/
6464
protected function create(array $data)
6565
{

app/Http/Controllers/UsersController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace App\Http\Controllers;
44

55
use Illuminate\Http\Request;
6-
use App\User;
6+
use App\Models\User;
77

88
class UsersController extends Controller
99
{

app/Http/Controllers/admin/UsersController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use App\Http\Controllers\Controller;
66
use Illuminate\Http\Request;
7-
use App\User;
7+
use App\Models\User;
88

99
class UsersController extends Controller
1010
{

app/Models/Folder.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
namespace App\Models;
44

55
use Illuminate\Database\Eloquent\Model;
6-
use Spatie\MediaLibrary\HasMedia\HasMedia;
7-
use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
6+
use Spatie\MediaLibrary\HasMedia;
7+
use Spatie\MediaLibrary\InteractsWithMedia;
88

99
class Folder extends Model implements HasMedia
1010
{
11-
use HasMediaTrait;
11+
use InteractsWithMedia;
1212

1313
protected $table = 'folder';
1414

app/Models/Notes.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@
33
namespace App\Models;
44

55
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Factories\HasFactory;
67

78
class Notes extends Model
89
{
10+
11+
use HasFactory;
12+
913
protected $table = 'notes';
1014

1115
/**
1216
* Get the User that owns the Notes.
1317
*/
1418
public function user()
1519
{
16-
return $this->belongsTo('App\User', 'users_id')->withTrashed();
20+
return $this->belongsTo('App\Models\User', 'users_id')->withTrashed();
1721
}
1822

1923
/**

app/Models/Status.php

+3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
namespace App\Models;
44

55
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Database\Eloquent\Factories\HasFactory;
67

78
class Status extends Model
89
{
10+
use HasFactory;
11+
912
protected $table = 'status';
1013
public $timestamps = false;
1114
/**

app/User.php app/Models/User.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
<?php
22

3-
namespace App;
3+
namespace App\Models;
44

55
use Illuminate\Contracts\Auth\MustVerifyEmail;
66
use Illuminate\Foundation\Auth\User as Authenticatable;
77
use Illuminate\Notifications\Notifiable;
88
use Illuminate\Database\Eloquent\SoftDeletes;
99
use Spatie\Permission\Traits\HasRoles;
10+
use Illuminate\Database\Eloquent\Factories\HasFactory;
1011

1112
class User extends Authenticatable
1213
{
1314
use Notifiable;
1415
use SoftDeletes;
1516
use HasRoles;
17+
use HasFactory;
18+
19+
protected $table = 'users';
1620

1721
/**
1822
* The attributes that are mass assignable.

app/Models/Users.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44

55
use Illuminate\Database\Eloquent\Model;
66
use Illuminate\Database\Eloquent\SoftDeletes;
7+
use Illuminate\Database\Eloquent\Factories\HasFactory;
78

89
class Users extends Model
910
{
1011
use SoftDeletes;
12+
use HasFactory;
1113

1214
/**
1315
* Get the notes for the users.

app/Providers/AppServiceProvider.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Providers;
44

55
use Illuminate\Support\ServiceProvider;
6+
use Illuminate\Pagination\Paginator;
67

78
class AppServiceProvider extends ServiceProvider
89
{
@@ -23,6 +24,6 @@ public function register()
2324
*/
2425
public function boot()
2526
{
26-
27+
Paginator::useBootstrap();
2728
}
2829
}

composer.json

+13-12
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
"require": {
1111
"php": "^7.2.5",
1212
"fideloper/proxy": "^4.2",
13-
"laravel/framework": "7.4",
13+
"laravel/framework": "^8.0",
1414
"fruitcake/laravel-cors": "^1.0",
15-
"guzzlehttp/guzzle": "^6.3",
15+
"guzzlehttp/guzzle": "^7.0.1",
1616
"laravel/tinker": "^2.3.0",
17-
"spatie/laravel-medialibrary": "^7.19.0",
18-
"spatie/laravel-permission": "^3.8",
19-
"laravel/ui": "^2.0.1"
17+
"spatie/laravel-medialibrary": "^8.7.2",
18+
"spatie/laravel-permission": "^3.17",
19+
"laravel/ui": "^3.0"
2020
},
2121
"require-dev": {
22-
"facade/ignition": "^2.0",
22+
"facade/ignition": "^2.3.6",
2323
"fzaninotto/faker": "^1.9.1",
2424
"mockery/mockery": "^1.3.1",
25-
"nunomaduro/collision": "^4.1",
26-
"phpunit/phpunit": "^8.5"
25+
"nunomaduro/collision": "^5.0",
26+
"phpunit/phpunit": "^9.0"
2727
},
2828
"config": {
2929
"optimize-autoloader": true,
@@ -37,16 +37,17 @@
3737
},
3838
"autoload": {
3939
"psr-4": {
40-
"App\\": "app/"
40+
"App\\": "app/",
41+
"Database\\Factories\\": "database/factories/",
42+
"Database\\Seeders\\": "database/seeders/"
4143
},
4244
"classmap": [
4345
"database",
44-
"database/seeds",
46+
"database/seeders",
4547
"database/factories"
4648
],
4749
"files": [
48-
"database/seeds/UsersAndNotesSeeder.php",
49-
"database/seeds/MenusTableSeeder.php"
50+
5051
]
5152
},
5253
"autoload-dev": {

0 commit comments

Comments
 (0)