Basic layout created, workout generator front end built.

This commit is contained in:
William Brawner 2015-08-30 09:02:43 -07:00
parent fe381adc26
commit 5675b2e7dd
26 changed files with 50 additions and 42 deletions

View file

@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace WorkoutGenerator\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;

View file

@ -1,6 +1,6 @@
<?php
namespace App\Console;
namespace WorkoutGenerator\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel
* @var array
*/
protected $commands = [
\App\Console\Commands\Inspire::class,
\WorkoutGenerator\Console\Commands\Inspire::class,
];
/**

View file

@ -1,6 +1,6 @@
<?php
namespace App\Events;
namespace WorkoutGenerator\Events;
abstract class Event
{

View file

@ -1,6 +1,6 @@
<?php
namespace App\Exceptions;
namespace WorkoutGenerator\Exceptions;
use Exception;
use Illuminate\Database\Eloquent\ModelNotFoundException;

View file

@ -1,10 +1,10 @@
<?php
namespace App\Http\Controllers\Auth;
namespace WorkoutGenerator\Http\Controllers\Auth;
use App\User;
use WorkoutGenerator\User;
use Validator;
use App\Http\Controllers\Controller;
use WorkoutGenerator\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;

View file

@ -1,8 +1,8 @@
<?php
namespace App\Http\Controllers\Auth;
namespace WorkoutGenerator\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use WorkoutGenerator\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class PasswordController extends Controller

View file

@ -1,6 +1,6 @@
<?php
namespace App\Http\Controllers;
namespace WorkoutGenerator\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;

View file

@ -1,6 +1,6 @@
<?php
namespace App\Http;
namespace WorkoutGenerator\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
@ -13,11 +13,11 @@ class Kernel extends HttpKernel
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\App\Http\Middleware\EncryptCookies::class,
\WorkoutGenerator\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\WorkoutGenerator\Http\Middleware\VerifyCsrfToken::class,
];
/**
@ -26,8 +26,8 @@ class Kernel extends HttpKernel
* @var array
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth' => \WorkoutGenerator\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'guest' => \WorkoutGenerator\Http\Middleware\RedirectIfAuthenticated::class,
];
}

View file

@ -1,6 +1,6 @@
<?php
namespace App\Http\Middleware;
namespace WorkoutGenerator\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;

View file

@ -1,6 +1,6 @@
<?php
namespace App\Http\Middleware;
namespace WorkoutGenerator\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter;

View file

@ -1,6 +1,6 @@
<?php
namespace App\Http\Middleware;
namespace WorkoutGenerator\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;

View file

@ -1,6 +1,6 @@
<?php
namespace App\Http\Middleware;
namespace WorkoutGenerator\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;

View file

@ -1,6 +1,6 @@
<?php
namespace App\Http\Requests;
namespace WorkoutGenerator\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;

View file

@ -12,5 +12,13 @@
*/
Route::get('/', function () {
return view('welcome');
return view('home');
});
Route::get('/about', function () {
return view('about');
});
Route::get('/generate', function () {
return view('generate');
});

View file

@ -1,6 +1,6 @@
<?php
namespace App\Jobs;
namespace WorkoutGenerator\Jobs;
use Illuminate\Bus\Queueable;

View file

@ -1,6 +1,6 @@
<?php
namespace App\Providers;
namespace WorkoutGenerator\Providers;
use Illuminate\Support\ServiceProvider;

View file

@ -1,6 +1,6 @@
<?php
namespace App\Providers;
namespace WorkoutGenerator\Providers;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
@ -13,8 +13,8 @@ class EventServiceProvider extends ServiceProvider
* @var array
*/
protected $listen = [
'App\Events\SomeEvent' => [
'App\Listeners\EventListener',
'WorkoutGenerator\Events\SomeEvent' => [
'WorkoutGenerator\Listeners\EventListener',
],
];

View file

@ -1,6 +1,6 @@
<?php
namespace App\Providers;
namespace WorkoutGenerator\Providers;
use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
@ -14,7 +14,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';
protected $namespace = 'WorkoutGenerator\Http\Controllers';
/**
* Define your route model bindings, pattern filters, etc.

View file

@ -1,6 +1,6 @@
<?php
namespace App;
namespace WorkoutGenerator;
use Illuminate\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;

View file

@ -28,17 +28,17 @@ $app = new Illuminate\Foundation\Application(
$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
App\Http\Kernel::class
WorkoutGenerator\Http\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
App\Console\Kernel::class
WorkoutGenerator\Console\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class
WorkoutGenerator\Exceptions\Handler::class
);
/*

View file

@ -19,7 +19,7 @@
"database"
],
"psr-4": {
"App\\": "app/"
"WorkoutGenerator\\": "app/"
}
},
"autoload-dev": {

View file

@ -140,9 +140,9 @@ return [
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
WorkoutGenerator\Providers\AppServiceProvider::class,
WorkoutGenerator\Providers\EventServiceProvider::class,
WorkoutGenerator\Providers\RouteServiceProvider::class,
],

View file

@ -28,7 +28,7 @@ return [
|
*/
'model' => App\User::class,
'model' => WorkoutGenerator\User::class,
/*
|--------------------------------------------------------------------------

View file

@ -30,7 +30,7 @@ return [
],
'stripe' => [
'model' => App\User::class,
'model' => WorkoutGenerator\User::class,
'key' => env('STRIPE_KEY'),
'secret' => env('STRIPE_SECRET'),
],

View file

@ -11,7 +11,7 @@
|
*/
$factory->define(App\User::class, function (Faker\Generator $faker) {
$factory->define(WorkoutGenerator\User::class, function (Faker\Generator $faker) {
return [
'name' => $faker->name,
'email' => $faker->email,

View file

@ -1,5 +1,5 @@
suites:
main:
namespace: App
psr4_prefix: App
namespace: WorkoutGenerator
psr4_prefix: WorkoutGenerator
src_path: app