This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

updated to laravel 5.1.11 and included modelfactory

  • Loading branch information...
jung35 committed Oct 3, 2015
1 parent 44778c1 commit ab669979ebabf65675304bebbb66677dca73d907
@@ -1,4 +1,6 @@
-<?php namespace VacStatus\Console\Commands;
+<?php
+
+namespace VacStatus\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
@@ -1,4 +1,6 @@
-<?php namespace VacStatus\Console\Commands;
+<?php
+
+namespace VacStatus\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
@@ -1,4 +1,6 @@
-<?php namespace VacStatus\Console\Commands;
+<?php
+
+namespace VacStatus\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
@@ -1,11 +1,12 @@
<?php namespace VacStatus\Http\Controllers;
-use Illuminate\Foundation\Bus\DispatchesCommands;
+use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
+use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
abstract class Controller extends BaseController {
- use DispatchesCommands, ValidatesRequests;
+ use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}
@@ -1,4 +1,6 @@
-<?php namespace VacStatus\Http\Middleware;
+<?php
+
+namespace VacStatus\Http\Middleware;
use Closure;
use Auth;
@@ -1,4 +1,6 @@
-<?php namespace VacStatus\Http\Middleware;
+<?php
+
+namespace VacStatus\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;
@@ -1,4 +1,6 @@
-<?php namespace VacStatus\Http\Middleware;
+<?php
+
+namespace VacStatus\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;
@@ -1,4 +1,6 @@
-<?php namespace VacStatus\Http\Middleware;
+<?php
+
+namespace VacStatus\Http\Middleware;
use Closure;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
View
@@ -1,4 +1,6 @@
-<?php namespace VacStatus\Jobss;
+<?php
+
+namespace VacStatus\Jobs;
abstract class Jobs {
View
@@ -6,12 +6,14 @@
use Illuminate\Database\Eloquent\Model;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
+use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
+use Illuminate\Foundation\Auth\Access\Authorizable;
use VacStatus\Steam\Steam;
-class User extends Model implements AuthenticatableContract
+class User extends Model implements AuthenticatableContract, AuthorizableContract
{
- use Authenticatable;
+ use Authenticatable, Authorizable;
protected $table = 'users';
protected $fillable = ['small_id'];
@@ -0,0 +1,31 @@
+<?php
+
+namespace VacStatus\Providers;
+
+use Illuminate\Contracts\Auth\Access\Gate as GateContract;
+use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
+
+class AuthServiceProvider extends ServiceProvider
+{
+ /**
+ * The policy mappings for the application.
+ *
+ * @var array
+ */
+ protected $policies = [
+ 'VacStatus\Model' => 'VacStatus\Policies\ModelPolicy',
+ ];
+
+ /**
+ * Register any application authentication / authorization services.
+ *
+ * @param \Illuminate\Contracts\Auth\Access\Gate $gate
+ * @return void
+ */
+ public function boot(GateContract $gate)
+ {
+ $this->registerPolicies($gate);
+
+ //
+ }
+}
View
@@ -113,42 +113,42 @@
/*
* Laravel Framework Service Providers...
*/
- 'Illuminate\Foundation\Providers\ArtisanServiceProvider',
- 'Illuminate\Auth\AuthServiceProvider',
- 'Illuminate\Bus\BusServiceProvider',
- 'Illuminate\Cache\CacheServiceProvider',
- 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
- 'Illuminate\Routing\ControllerServiceProvider',
- 'Illuminate\Cookie\CookieServiceProvider',
- 'Illuminate\Database\DatabaseServiceProvider',
- 'Illuminate\Encryption\EncryptionServiceProvider',
- 'Illuminate\Filesystem\FilesystemServiceProvider',
- 'Illuminate\Foundation\Providers\FoundationServiceProvider',
- 'Illuminate\Hashing\HashServiceProvider',
- 'Illuminate\Mail\MailServiceProvider',
- 'Illuminate\Pagination\PaginationServiceProvider',
- 'Illuminate\Pipeline\PipelineServiceProvider',
- 'Illuminate\Queue\QueueServiceProvider',
- 'Illuminate\Redis\RedisServiceProvider',
- 'Illuminate\Auth\Passwords\PasswordResetServiceProvider',
- 'Illuminate\Session\SessionServiceProvider',
- 'Illuminate\Translation\TranslationServiceProvider',
- 'Illuminate\Validation\ValidationServiceProvider',
- 'Illuminate\View\ViewServiceProvider',
-
- 'Illuminate\Broadcasting\BroadcastServiceProvider', // upgrading to laravel 5.1
+ Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
+ Illuminate\Auth\AuthServiceProvider::class,
+ Illuminate\Bus\BusServiceProvider::class,
+ Illuminate\Cache\CacheServiceProvider::class,
+ Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
+ Illuminate\Routing\ControllerServiceProvider::class,
+ Illuminate\Cookie\CookieServiceProvider::class,
+ Illuminate\Database\DatabaseServiceProvider::class,
+ Illuminate\Encryption\EncryptionServiceProvider::class,
+ Illuminate\Filesystem\FilesystemServiceProvider::class,
+ Illuminate\Foundation\Providers\FoundationServiceProvider::class,
+ Illuminate\Hashing\HashServiceProvider::class,
+ Illuminate\Mail\MailServiceProvider::class,
+ Illuminate\Pagination\PaginationServiceProvider::class,
+ Illuminate\Pipeline\PipelineServiceProvider::class,
+ Illuminate\Queue\QueueServiceProvider::class,
+ Illuminate\Redis\RedisServiceProvider::class,
+ Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
+ Illuminate\Session\SessionServiceProvider::class,
+ Illuminate\Translation\TranslationServiceProvider::class,
+ Illuminate\Validation\ValidationServiceProvider::class,
+ Illuminate\View\ViewServiceProvider::class,
+
+ Illuminate\Broadcasting\BroadcastServiceProvider::class,
Laravel\Socialite\SocialiteServiceProvider::class,
/*
* Application Service Providers...
*/
- 'VacStatus\Providers\AppServiceProvider',
- 'VacStatus\Providers\BusServiceProvider',
- 'VacStatus\Providers\ConfigServiceProvider',
- 'VacStatus\Providers\EventServiceProvider',
- 'VacStatus\Providers\RouteServiceProvider',
- 'VacStatus\Providers\BladeServiceProvider',
+ VacStatus\Providers\AppServiceProvider::class,
+ VacStatus\Providers\BusServiceProvider::class,
+ VacStatus\Providers\ConfigServiceProvider::class,
+ VacStatus\Providers\EventServiceProvider::class,
+ VacStatus\Providers\RouteServiceProvider::class,
+ VacStatus\Providers\BladeServiceProvider::class,
],
@@ -165,41 +165,42 @@
'aliases' => [
- 'App' => 'Illuminate\Support\Facades\App',
- 'Artisan' => 'Illuminate\Support\Facades\Artisan',
- 'Auth' => 'Illuminate\Support\Facades\Auth',
- 'Blade' => 'Illuminate\Support\Facades\Blade',
- 'Bus' => 'Illuminate\Support\Facades\Bus',
- 'Cache' => 'Illuminate\Support\Facades\Cache',
- 'Config' => 'Illuminate\Support\Facades\Config',
- 'Cookie' => 'Illuminate\Support\Facades\Cookie',
- 'Crypt' => 'Illuminate\Support\Facades\Crypt',
- 'DB' => 'Illuminate\Support\Facades\DB',
- 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
- 'Event' => 'Illuminate\Support\Facades\Event',
- 'File' => 'Illuminate\Support\Facades\File',
- 'Hash' => 'Illuminate\Support\Facades\Hash',
- 'Input' => 'Illuminate\Support\Facades\Input',
- 'Inspiring' => 'Illuminate\Foundation\Inspiring',
- 'Lang' => 'Illuminate\Support\Facades\Lang',
- 'Log' => 'Illuminate\Support\Facades\Log',
- 'Mail' => 'Illuminate\Support\Facades\Mail',
- 'Password' => 'Illuminate\Support\Facades\Password',
- 'Queue' => 'Illuminate\Support\Facades\Queue',
- 'Redirect' => 'Illuminate\Support\Facades\Redirect',
- 'Redis' => 'Illuminate\Support\Facades\Redis',
- 'Request' => 'Illuminate\Support\Facades\Request',
- 'Response' => 'Illuminate\Support\Facades\Response',
- 'Route' => 'Illuminate\Support\Facades\Route',
- 'Schema' => 'Illuminate\Support\Facades\Schema',
- 'Session' => 'Illuminate\Support\Facades\Session',
- 'Storage' => 'Illuminate\Support\Facades\Storage',
- 'URL' => 'Illuminate\Support\Facades\URL',
- 'Validator' => 'Illuminate\Support\Facades\Validator',
- 'View' => 'Illuminate\Support\Facades\View',
- 'Carbon' => 'Carbon\Carbon',
-
- 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
+ 'App' => Illuminate\Support\Facades\App::class,
+ 'Artisan' => Illuminate\Support\Facades\Artisan::class,
+ 'Auth' => Illuminate\Support\Facades\Auth::class,
+ 'Blade' => Illuminate\Support\Facades\Blade::class,
+ 'Bus' => Illuminate\Support\Facades\Bus::class,
+ 'Cache' => Illuminate\Support\Facades\Cache::class,
+ 'Config' => Illuminate\Support\Facades\Config::class,
+ 'Cookie' => Illuminate\Support\Facades\Cookie::class,
+ 'Crypt' => Illuminate\Support\Facades\Crypt::class,
+ 'DB' => Illuminate\Support\Facades\DB::class,
+ 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
+ 'Event' => Illuminate\Support\Facades\Event::class,
+ 'File' => Illuminate\Support\Facades\File::class,
+ 'Hash' => Illuminate\Support\Facades\Hash::class,
+ 'Input' => Illuminate\Support\Facades\Input::class,
+ 'Inspiring' => Illuminate\Foundation\Inspiring::class,
+ 'Lang' => Illuminate\Support\Facades\Lang::class,
+ 'Log' => Illuminate\Support\Facades\Log::class,
+ 'Mail' => Illuminate\Support\Facades\Mail::class,
+ 'Password' => Illuminate\Support\Facades\Password::class,
+ 'Queue' => Illuminate\Support\Facades\Queue::class,
+ 'Redirect' => Illuminate\Support\Facades\Redirect::class,
+ 'Redis' => Illuminate\Support\Facades\Redis::class,
+ 'Request' => Illuminate\Support\Facades\Request::class,
+ 'Response' => Illuminate\Support\Facades\Response::class,
+ 'Route' => Illuminate\Support\Facades\Route::class,
+ 'Schema' => Illuminate\Support\Facades\Schema::class,
+ 'Session' => Illuminate\Support\Facades\Session::class,
+ 'Storage' => Illuminate\Support\Facades\Storage::class,
+ 'URL' => Illuminate\Support\Facades\URL::class,
+ 'Validator' => Illuminate\Support\Facades\Validator::class,
+ 'View' => Illuminate\Support\Facades\View::class,
+ 'Carbon' => Carbon\Carbon::class,
+
+ 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
+ 'Gate' => Illuminate\Support\Facades\Gate::class,
],
];
Oops, something went wrong.

0 comments on commit ab66997

Please sign in to comment.