Dan Brown

Initial commit

Showing 99 changed files with 3434 additions and 0 deletions
1 +APP_ENV=local
2 +APP_DEBUG=true
3 +APP_KEY=SomeRandomString
4 +
5 +DB_HOST=localhost
6 +DB_DATABASE=homestead
7 +DB_USERNAME=homestead
8 +DB_PASSWORD=secret
9 +
10 +CACHE_DRIVER=file
11 +SESSION_DRIVER=file
12 +QUEUE_DRIVER=sync
13 +
14 +MAIL_DRIVER=smtp
15 +MAIL_HOST=mailtrap.io
16 +MAIL_PORT=2525
17 +MAIL_USERNAME=null
18 +MAIL_PASSWORD=null
19 +MAIL_ENCRYPTION=null
...\ No newline at end of file ...\ No newline at end of file
1 +* text=auto
2 +*.css linguist-vendored
3 +*.less linguist-vendored
1 +/vendor
2 +/node_modules
3 +Homestead.yaml
4 +.env
5 +/public/dist
6 +.idea
...\ No newline at end of file ...\ No newline at end of file
1 +<?php
2 +
3 +namespace Oxbow;
4 +
5 +use Illuminate\Database\Eloquent\Model;
6 +
7 +class Book extends Model
8 +{
9 +
10 + protected $fillable = ['name', 'description'];
11 +
12 + public function getUrl()
13 + {
14 + return '/books/' . $this->slug;
15 + }
16 +
17 + public function getEditUrl()
18 + {
19 + return $this->getUrl() . '/edit';
20 + }
21 +
22 +}
1 +<?php
2 +
3 +namespace Oxbow\Console\Commands;
4 +
5 +use Illuminate\Console\Command;
6 +use Illuminate\Foundation\Inspiring;
7 +
8 +class Inspire extends Command
9 +{
10 + /**
11 + * The name and signature of the console command.
12 + *
13 + * @var string
14 + */
15 + protected $signature = 'inspire';
16 +
17 + /**
18 + * The console command description.
19 + *
20 + * @var string
21 + */
22 + protected $description = 'Display an inspiring quote';
23 +
24 + /**
25 + * Execute the console command.
26 + *
27 + * @return mixed
28 + */
29 + public function handle()
30 + {
31 + $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
32 + }
33 +}
1 +<?php
2 +
3 +namespace Oxbow\Console;
4 +
5 +use Illuminate\Console\Scheduling\Schedule;
6 +use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7 +
8 +class Kernel extends ConsoleKernel
9 +{
10 + /**
11 + * The Artisan commands provided by your application.
12 + *
13 + * @var array
14 + */
15 + protected $commands = [
16 + \Oxbow\Console\Commands\Inspire::class,
17 + ];
18 +
19 + /**
20 + * Define the application's command schedule.
21 + *
22 + * @param \Illuminate\Console\Scheduling\Schedule $schedule
23 + * @return void
24 + */
25 + protected function schedule(Schedule $schedule)
26 + {
27 + $schedule->command('inspire')
28 + ->hourly();
29 + }
30 +}
1 +<?php
2 +
3 +namespace Oxbow\Events;
4 +
5 +abstract class Event
6 +{
7 + //
8 +}
1 +<?php
2 +
3 +namespace Oxbow\Exceptions;
4 +
5 +use Exception;
6 +use Symfony\Component\HttpKernel\Exception\HttpException;
7 +use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
8 +
9 +class Handler extends ExceptionHandler
10 +{
11 + /**
12 + * A list of the exception types that should not be reported.
13 + *
14 + * @var array
15 + */
16 + protected $dontReport = [
17 + HttpException::class,
18 + ];
19 +
20 + /**
21 + * Report or log an exception.
22 + *
23 + * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
24 + *
25 + * @param \Exception $e
26 + * @return void
27 + */
28 + public function report(Exception $e)
29 + {
30 + return parent::report($e);
31 + }
32 +
33 + /**
34 + * Render an exception into an HTTP response.
35 + *
36 + * @param \Illuminate\Http\Request $request
37 + * @param \Exception $e
38 + * @return \Illuminate\Http\Response
39 + */
40 + public function render($request, Exception $e)
41 + {
42 + return parent::render($request, $e);
43 + }
44 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Controllers\Auth;
4 +
5 +use Oxbow\User;
6 +use Validator;
7 +use Oxbow\Http\Controllers\Controller;
8 +use Illuminate\Foundation\Auth\ThrottlesLogins;
9 +use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
10 +
11 +class AuthController extends Controller
12 +{
13 + /*
14 + |--------------------------------------------------------------------------
15 + | Registration & Login Controller
16 + |--------------------------------------------------------------------------
17 + |
18 + | This controller handles the registration of new users, as well as the
19 + | authentication of existing users. By default, this controller uses
20 + | a simple trait to add these behaviors. Why don't you explore it?
21 + |
22 + */
23 +
24 + use AuthenticatesAndRegistersUsers, ThrottlesLogins;
25 +
26 + /**
27 + * Create a new authentication controller instance.
28 + *
29 + * @return void
30 + */
31 + public function __construct()
32 + {
33 + $this->middleware('guest', ['except' => 'getLogout']);
34 + }
35 +
36 + /**
37 + * Get a validator for an incoming registration request.
38 + *
39 + * @param array $data
40 + * @return \Illuminate\Contracts\Validation\Validator
41 + */
42 + protected function validator(array $data)
43 + {
44 + return Validator::make($data, [
45 + 'name' => 'required|max:255',
46 + 'email' => 'required|email|max:255|unique:users',
47 + 'password' => 'required|confirmed|min:6',
48 + ]);
49 + }
50 +
51 + /**
52 + * Create a new user instance after a valid registration.
53 + *
54 + * @param array $data
55 + * @return User
56 + */
57 + protected function create(array $data)
58 + {
59 + return User::create([
60 + 'name' => $data['name'],
61 + 'email' => $data['email'],
62 + 'password' => bcrypt($data['password']),
63 + ]);
64 + }
65 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Controllers\Auth;
4 +
5 +use Oxbow\Http\Controllers\Controller;
6 +use Illuminate\Foundation\Auth\ResetsPasswords;
7 +
8 +class PasswordController 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 + * Create a new password controller instance.
25 + *
26 + * @return void
27 + */
28 + public function __construct()
29 + {
30 + $this->middleware('guest');
31 + }
32 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Controllers;
4 +
5 +use Illuminate\Http\Request;
6 +
7 +use Illuminate\Support\Str;
8 +use Oxbow\Http\Requests;
9 +use Oxbow\Repos\BookRepo;
10 +
11 +class BookController extends Controller
12 +{
13 +
14 + protected $bookRepo;
15 +
16 + /**
17 + * BookController constructor.
18 + * @param BookRepo $bookRepo
19 + */
20 + public function __construct(BookRepo $bookRepo)
21 + {
22 + $this->bookRepo = $bookRepo;
23 + }
24 +
25 + /**
26 + * Display a listing of the book.
27 + *
28 + * @return Response
29 + */
30 + public function index()
31 + {
32 + $books = $this->bookRepo->getAll();
33 + return view('books/index', ['books' => $books]);
34 + }
35 +
36 + /**
37 + * Show the form for creating a new book.
38 + *
39 + * @return Response
40 + */
41 + public function create()
42 + {
43 + return view('books/create');
44 + }
45 +
46 + /**
47 + * Store a newly created book in storage.
48 + *
49 + * @param Request $request
50 + * @return Response
51 + */
52 + public function store(Request $request)
53 + {
54 + $this->validate($request, [
55 + 'name' => 'required|string|max:255',
56 + 'description' => 'string|max:1000'
57 + ]);
58 + $book = $this->bookRepo->newFromInput($request->all());
59 + $slug = Str::slug($book->name);
60 + while($this->bookRepo->countBySlug($slug) > 0) {
61 + $slug += '1';
62 + }
63 + $book->slug = $slug;
64 + $book->save();
65 + return redirect('/books');
66 + }
67 +
68 + /**
69 + * Display the specified book.
70 + *
71 + * @param $slug
72 + * @return Response
73 + */
74 + public function show($slug)
75 + {
76 + $book = $this->bookRepo->getBySlug($slug);
77 + return view('books/show', ['book' => $book]);
78 + }
79 +
80 + /**
81 + * Show the form for editing the specified book.
82 + *
83 + * @param $slug
84 + * @return Response
85 + */
86 + public function edit($slug)
87 + {
88 + $book = $this->bookRepo->getBySlug($slug);
89 + return view('books/edit', ['book' => $book]);
90 + }
91 +
92 + /**
93 + * Update the specified book in storage.
94 + *
95 + * @param Request $request
96 + * @param $slug
97 + * @return Response
98 + */
99 + public function update(Request $request, $slug)
100 + {
101 + $book = $this->bookRepo->getBySlug($slug);
102 + $this->validate($request, [
103 + 'name' => 'required|string|max:255',
104 + 'description' => 'string|max:1000'
105 + ]);
106 + $slug = Str::slug($book->name);
107 + while($this->bookRepo->countBySlug($slug) > 0 && $book->slug != $slug) {
108 + $slug += '1';
109 + }
110 + $book->slug = $slug;
111 + $book->save();
112 + return redirect('/books');
113 + }
114 +
115 + /**
116 + * Remove the specified book from storage.
117 + *
118 + * @param int $id
119 + * @return Response
120 + */
121 + public function destroy($id)
122 + {
123 + $this->bookRepo->destroyById($id);
124 + return redirect('/books');
125 + }
126 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Controllers;
4 +
5 +use Illuminate\Foundation\Bus\DispatchesJobs;
6 +use Illuminate\Routing\Controller as BaseController;
7 +use Illuminate\Foundation\Validation\ValidatesRequests;
8 +
9 +abstract class Controller extends BaseController
10 +{
11 + use DispatchesJobs, ValidatesRequests;
12 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Controllers;
4 +
5 +use Illuminate\Http\Request;
6 +
7 +use Oxbow\Http\Requests;
8 +use Oxbow\Http\Controllers\Controller;
9 +
10 +class PageController extends Controller
11 +{
12 + /**
13 + * Display a listing of the resource.
14 + *
15 + * @return Response
16 + */
17 + public function index()
18 + {
19 + //
20 + }
21 +
22 + /**
23 + * Show the form for creating a new resource.
24 + *
25 + * @return Response
26 + */
27 + public function create()
28 + {
29 + //
30 + }
31 +
32 + /**
33 + * Store a newly created resource in storage.
34 + *
35 + * @param Request $request
36 + * @return Response
37 + */
38 + public function store(Request $request)
39 + {
40 + //
41 + }
42 +
43 + /**
44 + * Display the specified resource.
45 + *
46 + * @param int $id
47 + * @return Response
48 + */
49 + public function show($id)
50 + {
51 + //
52 + }
53 +
54 + /**
55 + * Show the form for editing the specified resource.
56 + *
57 + * @param int $id
58 + * @return Response
59 + */
60 + public function edit($id)
61 + {
62 + //
63 + }
64 +
65 + /**
66 + * Update the specified resource in storage.
67 + *
68 + * @param Request $request
69 + * @param int $id
70 + * @return Response
71 + */
72 + public function update(Request $request, $id)
73 + {
74 + //
75 + }
76 +
77 + /**
78 + * Remove the specified resource from storage.
79 + *
80 + * @param int $id
81 + * @return Response
82 + */
83 + public function destroy($id)
84 + {
85 + //
86 + }
87 +}
1 +<?php
2 +
3 +namespace Oxbow\Http;
4 +
5 +use Illuminate\Foundation\Http\Kernel as HttpKernel;
6 +
7 +class Kernel extends HttpKernel
8 +{
9 + /**
10 + * The application's global HTTP middleware stack.
11 + *
12 + * @var array
13 + */
14 + protected $middleware = [
15 + \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
16 + \Oxbow\Http\Middleware\EncryptCookies::class,
17 + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
18 + \Illuminate\Session\Middleware\StartSession::class,
19 + \Illuminate\View\Middleware\ShareErrorsFromSession::class,
20 + \Oxbow\Http\Middleware\VerifyCsrfToken::class,
21 + ];
22 +
23 + /**
24 + * The application's route middleware.
25 + *
26 + * @var array
27 + */
28 + protected $routeMiddleware = [
29 + 'auth' => \Oxbow\Http\Middleware\Authenticate::class,
30 + 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
31 + 'guest' => \Oxbow\Http\Middleware\RedirectIfAuthenticated::class,
32 + ];
33 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Middleware;
4 +
5 +use Closure;
6 +use Illuminate\Contracts\Auth\Guard;
7 +
8 +class Authenticate
9 +{
10 + /**
11 + * The Guard implementation.
12 + *
13 + * @var Guard
14 + */
15 + protected $auth;
16 +
17 + /**
18 + * Create a new filter instance.
19 + *
20 + * @param Guard $auth
21 + * @return void
22 + */
23 + public function __construct(Guard $auth)
24 + {
25 + $this->auth = $auth;
26 + }
27 +
28 + /**
29 + * Handle an incoming request.
30 + *
31 + * @param \Illuminate\Http\Request $request
32 + * @param \Closure $next
33 + * @return mixed
34 + */
35 + public function handle($request, Closure $next)
36 + {
37 + if ($this->auth->guest()) {
38 + if ($request->ajax()) {
39 + return response('Unauthorized.', 401);
40 + } else {
41 + return redirect()->guest('auth/login');
42 + }
43 + }
44 +
45 + return $next($request);
46 + }
47 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Middleware;
4 +
5 +use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter;
6 +
7 +class EncryptCookies extends BaseEncrypter
8 +{
9 + /**
10 + * The names of the cookies that should not be encrypted.
11 + *
12 + * @var array
13 + */
14 + protected $except = [
15 + //
16 + ];
17 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Middleware;
4 +
5 +use Closure;
6 +use Illuminate\Contracts\Auth\Guard;
7 +
8 +class RedirectIfAuthenticated
9 +{
10 + /**
11 + * The Guard implementation.
12 + *
13 + * @var Guard
14 + */
15 + protected $auth;
16 +
17 + /**
18 + * Create a new filter instance.
19 + *
20 + * @param Guard $auth
21 + * @return void
22 + */
23 + public function __construct(Guard $auth)
24 + {
25 + $this->auth = $auth;
26 + }
27 +
28 + /**
29 + * Handle an incoming request.
30 + *
31 + * @param \Illuminate\Http\Request $request
32 + * @param \Closure $next
33 + * @return mixed
34 + */
35 + public function handle($request, Closure $next)
36 + {
37 + if ($this->auth->check()) {
38 + return redirect('/home');
39 + }
40 +
41 + return $next($request);
42 + }
43 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Middleware;
4 +
5 +use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
6 +
7 +class VerifyCsrfToken extends BaseVerifier
8 +{
9 + /**
10 + * The URIs that should be excluded from CSRF verification.
11 + *
12 + * @var array
13 + */
14 + protected $except = [
15 + //
16 + ];
17 +}
1 +<?php
2 +
3 +namespace Oxbow\Http\Requests;
4 +
5 +use Illuminate\Foundation\Http\FormRequest;
6 +
7 +abstract class Request extends FormRequest
8 +{
9 + //
10 +}
1 +<?php
2 +
3 +/*
4 +|--------------------------------------------------------------------------
5 +| Application Routes
6 +|--------------------------------------------------------------------------
7 +|
8 +| Here is where you can register all of the routes for an application.
9 +| It's a breeze. Simply tell Laravel the URIs it should respond to
10 +| and give it the controller to call when that URI is requested.
11 +|
12 +*/
13 +
14 +
15 +Route::group(['prefix' => 'books'], function() {
16 +
17 + Route::get('/', 'BookController@index');
18 + Route::get('/create', 'BookController@create');
19 + Route::post('/', 'BookController@store');
20 + Route::get('/{slug}/edit', 'BookController@edit');
21 + Route::put('/{slug}', 'BookController@update');
22 + Route::delete('/{id}/destroy', 'BookController@destroy');
23 + Route::get('/{slug}', 'BookController@show');
24 +});
25 +
26 +Route::get('/', function () {
27 + return view('base');
28 +});
1 +<?php
2 +
3 +namespace Oxbow\Jobs;
4 +
5 +use Illuminate\Bus\Queueable;
6 +
7 +abstract class Job
8 +{
9 + /*
10 + |--------------------------------------------------------------------------
11 + | Queueable Jobs
12 + |--------------------------------------------------------------------------
13 + |
14 + | This job base class provides a central location to place any logic that
15 + | is shared across all of your jobs. The trait included with the class
16 + | provides access to the "queueOn" and "delay" queue helper methods.
17 + |
18 + */
19 +
20 + use Queueable;
21 +}
File mode changed
1 +<?php
2 +
3 +namespace Oxbow;
4 +
5 +use Illuminate\Database\Eloquent\Model;
6 +
7 +class Page extends Model
8 +{
9 + //
10 +}
1 +<?php
2 +
3 +namespace Oxbow\Providers;
4 +
5 +use Illuminate\Support\ServiceProvider;
6 +
7 +class AppServiceProvider extends ServiceProvider
8 +{
9 + /**
10 + * Bootstrap any application services.
11 + *
12 + * @return void
13 + */
14 + public function boot()
15 + {
16 + //
17 + }
18 +
19 + /**
20 + * Register any application services.
21 + *
22 + * @return void
23 + */
24 + public function register()
25 + {
26 + //
27 + }
28 +}
1 +<?php
2 +
3 +namespace Oxbow\Providers;
4 +
5 +use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
6 +use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
7 +
8 +class EventServiceProvider extends ServiceProvider
9 +{
10 + /**
11 + * The event listener mappings for the application.
12 + *
13 + * @var array
14 + */
15 + protected $listen = [
16 + 'Oxbow\Events\SomeEvent' => [
17 + 'Oxbow\Listeners\EventListener',
18 + ],
19 + ];
20 +
21 + /**
22 + * Register any other events for your application.
23 + *
24 + * @param \Illuminate\Contracts\Events\Dispatcher $events
25 + * @return void
26 + */
27 + public function boot(DispatcherContract $events)
28 + {
29 + parent::boot($events);
30 +
31 + //
32 + }
33 +}
1 +<?php
2 +
3 +namespace Oxbow\Providers;
4 +
5 +use Illuminate\Routing\Router;
6 +use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
7 +
8 +class RouteServiceProvider extends ServiceProvider
9 +{
10 + /**
11 + * This namespace is applied to the controller routes in your routes file.
12 + *
13 + * In addition, it is set as the URL generator's root namespace.
14 + *
15 + * @var string
16 + */
17 + protected $namespace = 'Oxbow\Http\Controllers';
18 +
19 + /**
20 + * Define your route model bindings, pattern filters, etc.
21 + *
22 + * @param \Illuminate\Routing\Router $router
23 + * @return void
24 + */
25 + public function boot(Router $router)
26 + {
27 + //
28 +
29 + parent::boot($router);
30 + }
31 +
32 + /**
33 + * Define the routes for the application.
34 + *
35 + * @param \Illuminate\Routing\Router $router
36 + * @return void
37 + */
38 + public function map(Router $router)
39 + {
40 + $router->group(['namespace' => $this->namespace], function ($router) {
41 + require app_path('Http/routes.php');
42 + });
43 + }
44 +}
1 +<?php namespace Oxbow\Repos;
2 +
3 +use Oxbow\Book;
4 +
5 +class BookRepo
6 +{
7 +
8 + protected $book;
9 +
10 + /**
11 + * BookRepo constructor.
12 + * @param $book
13 + */
14 + public function __construct(Book $book)
15 + {
16 + $this->book = $book;
17 + }
18 +
19 + public function getById($id)
20 + {
21 + return $this->book->findOrFail($id);
22 + }
23 +
24 + public function getAll()
25 + {
26 + return $this->book->all();
27 + }
28 +
29 + public function getBySlug($slug)
30 + {
31 + return $this->book->where('slug', '=', $slug)->first();
32 + }
33 +
34 + public function newFromInput($input)
35 + {
36 + return $this->book->fill($input);
37 + }
38 +
39 + public function countBySlug($slug)
40 + {
41 + return $this->book->where('slug', '=', $slug)->count();
42 + }
43 +
44 + public function destroyById($id)
45 + {
46 + $book = $this->getById($id);
47 + $book->delete();
48 + }
49 +
50 +}
...\ No newline at end of file ...\ No newline at end of file
1 +<?php
2 +
3 +namespace Oxbow;
4 +
5 +use Illuminate\Auth\Authenticatable;
6 +use Illuminate\Database\Eloquent\Model;
7 +use Illuminate\Auth\Passwords\CanResetPassword;
8 +use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
9 +use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
10 +
11 +class User extends Model implements AuthenticatableContract, CanResetPasswordContract
12 +{
13 + use Authenticatable, CanResetPassword;
14 +
15 + /**
16 + * The database table used by the model.
17 + *
18 + * @var string
19 + */
20 + protected $table = 'users';
21 +
22 + /**
23 + * The attributes that are mass assignable.
24 + *
25 + * @var array
26 + */
27 + protected $fillable = ['name', 'email', 'password'];
28 +
29 + /**
30 + * The attributes excluded from the model's JSON form.
31 + *
32 + * @var array
33 + */
34 + protected $hidden = ['password', 'remember_token'];
35 +}
1 +#!/usr/bin/env php
2 +<?php
3 +
4 +/*
5 +|--------------------------------------------------------------------------
6 +| Register The Auto Loader
7 +|--------------------------------------------------------------------------
8 +|
9 +| Composer provides a convenient, automatically generated class loader
10 +| for our application. We just need to utilize it! We'll require it
11 +| into the script here so that we do not have to worry about the
12 +| loading of any our classes "manually". Feels great to relax.
13 +|
14 +*/
15 +
16 +require __DIR__.'/bootstrap/autoload.php';
17 +
18 +$app = require_once __DIR__.'/bootstrap/app.php';
19 +
20 +/*
21 +|--------------------------------------------------------------------------
22 +| Run The Artisan Application
23 +|--------------------------------------------------------------------------
24 +|
25 +| When we run the console application, the current CLI command will be
26 +| executed in this console and the response sent back to a terminal
27 +| or another output device for the developers. Here goes nothing!
28 +|
29 +*/
30 +
31 +$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
32 +
33 +$status = $kernel->handle(
34 + $input = new Symfony\Component\Console\Input\ArgvInput,
35 + new Symfony\Component\Console\Output\ConsoleOutput
36 +);
37 +
38 +/*
39 +|--------------------------------------------------------------------------
40 +| Shutdown The Application
41 +|--------------------------------------------------------------------------
42 +|
43 +| Once Artisan has finished running. We will fire off the shutdown events
44 +| so that any final work may be done by the application before we shut
45 +| down the process. This is the last thing to happen to the request.
46 +|
47 +*/
48 +
49 +$kernel->terminate($input, $status);
50 +
51 +exit($status);
1 +<?php
2 +
3 +/*
4 +|--------------------------------------------------------------------------
5 +| Create The Application
6 +|--------------------------------------------------------------------------
7 +|
8 +| The first thing we will do is create a new Laravel application instance
9 +| which serves as the "glue" for all the components of Laravel, and is
10 +| the IoC container for the system binding all of the various parts.
11 +|
12 +*/
13 +
14 +$app = new Illuminate\Foundation\Application(
15 + realpath(__DIR__.'/../')
16 +);
17 +
18 +/*
19 +|--------------------------------------------------------------------------
20 +| Bind Important Interfaces
21 +|--------------------------------------------------------------------------
22 +|
23 +| Next, we need to bind some important interfaces into the container so
24 +| we will be able to resolve them when needed. The kernels serve the
25 +| incoming requests to this application from both the web and CLI.
26 +|
27 +*/
28 +
29 +$app->singleton(
30 + Illuminate\Contracts\Http\Kernel::class,
31 + Oxbow\Http\Kernel::class
32 +);
33 +
34 +$app->singleton(
35 + Illuminate\Contracts\Console\Kernel::class,
36 + Oxbow\Console\Kernel::class
37 +);
38 +
39 +$app->singleton(
40 + Illuminate\Contracts\Debug\ExceptionHandler::class,
41 + Oxbow\Exceptions\Handler::class
42 +);
43 +
44 +/*
45 +|--------------------------------------------------------------------------
46 +| Return The Application
47 +|--------------------------------------------------------------------------
48 +|
49 +| This script returns the application instance. The instance is given to
50 +| the calling script so we can separate the building of the instances
51 +| from the actual running of the application and sending responses.
52 +|
53 +*/
54 +
55 +return $app;
1 +<?php
2 +
3 +define('LARAVEL_START', microtime(true));
4 +
5 +/*
6 +|--------------------------------------------------------------------------
7 +| Register The Composer Auto Loader
8 +|--------------------------------------------------------------------------
9 +|
10 +| Composer provides a convenient, automatically generated class loader
11 +| for our application. We just need to utilize it! We'll require it
12 +| into the script here so that we do not have to worry about the
13 +| loading of any our classes "manually". Feels great to relax.
14 +|
15 +*/
16 +
17 +require __DIR__.'/../vendor/autoload.php';
18 +
19 +/*
20 +|--------------------------------------------------------------------------
21 +| Include The Compiled Class File
22 +|--------------------------------------------------------------------------
23 +|
24 +| To dramatically increase your application's performance, you may use a
25 +| compiled class file which contains all of the classes commonly used
26 +| by a request. The Artisan "optimize" is used to create this file.
27 +|
28 +*/
29 +
30 +$compiledPath = __DIR__.'/cache/compiled.php';
31 +
32 +if (file_exists($compiledPath)) {
33 + require $compiledPath;
34 +}
1 +{
2 + "name": "laravel/laravel",
3 + "description": "The Laravel Framework.",
4 + "keywords": ["framework", "laravel"],
5 + "license": "MIT",
6 + "type": "project",
7 + "require": {
8 + "php": ">=5.5.9",
9 + "laravel/framework": "5.1.*"
10 + },
11 + "require-dev": {
12 + "fzaninotto/faker": "~1.4",
13 + "mockery/mockery": "0.9.*",
14 + "phpunit/phpunit": "~4.0",
15 + "phpspec/phpspec": "~2.1"
16 + },
17 + "autoload": {
18 + "classmap": [
19 + "database"
20 + ],
21 + "psr-4": {
22 + "Oxbow\\": "app/"
23 + }
24 + },
25 + "autoload-dev": {
26 + "classmap": [
27 + "tests/TestCase.php"
28 + ]
29 + },
30 + "scripts": {
31 + "post-install-cmd": [
32 + "php artisan clear-compiled",
33 + "php artisan optimize"
34 + ],
35 + "pre-update-cmd": [
36 + "php artisan clear-compiled"
37 + ],
38 + "post-update-cmd": [
39 + "php artisan optimize"
40 + ],
41 + "post-root-package-install": [
42 + "php -r \"copy('.env.example', '.env');\""
43 + ],
44 + "post-create-project-cmd": [
45 + "php artisan key:generate"
46 + ]
47 + },
48 + "config": {
49 + "preferred-install": "dist"
50 + }
51 +}
This diff could not be displayed because it is too large.
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Application Debug Mode
8 + |--------------------------------------------------------------------------
9 + |
10 + | When your application is in debug mode, detailed error messages with
11 + | stack traces will be shown on every error that occurs within your
12 + | application. If disabled, a simple generic error page is shown.
13 + |
14 + */
15 +
16 + 'debug' => env('APP_DEBUG', false),
17 +
18 + /*
19 + |--------------------------------------------------------------------------
20 + | Application URL
21 + |--------------------------------------------------------------------------
22 + |
23 + | This URL is used by the console to properly generate URLs when using
24 + | the Artisan command line tool. You should set this to the root of
25 + | your application so that it is used when running Artisan tasks.
26 + |
27 + */
28 +
29 + 'url' => 'http://localhost',
30 +
31 + /*
32 + |--------------------------------------------------------------------------
33 + | Application Timezone
34 + |--------------------------------------------------------------------------
35 + |
36 + | Here you may specify the default timezone for your application, which
37 + | will be used by the PHP date and date-time functions. We have gone
38 + | ahead and set this to a sensible default for you out of the box.
39 + |
40 + */
41 +
42 + 'timezone' => 'UTC',
43 +
44 + /*
45 + |--------------------------------------------------------------------------
46 + | Application Locale Configuration
47 + |--------------------------------------------------------------------------
48 + |
49 + | The application locale determines the default locale that will be used
50 + | by the translation service provider. You are free to set this value
51 + | to any of the locales which will be supported by the application.
52 + |
53 + */
54 +
55 + 'locale' => 'en',
56 +
57 + /*
58 + |--------------------------------------------------------------------------
59 + | Application Fallback Locale
60 + |--------------------------------------------------------------------------
61 + |
62 + | The fallback locale determines the locale to use when the current one
63 + | is not available. You may change the value to correspond to any of
64 + | the language folders that are provided through your application.
65 + |
66 + */
67 +
68 + 'fallback_locale' => 'en',
69 +
70 + /*
71 + |--------------------------------------------------------------------------
72 + | Encryption Key
73 + |--------------------------------------------------------------------------
74 + |
75 + | This key is used by the Illuminate encrypter service and should be set
76 + | to a random, 32 character string, otherwise these encrypted strings
77 + | will not be safe. Please do this before deploying an application!
78 + |
79 + */
80 +
81 + 'key' => env('APP_KEY', 'SomeRandomString'),
82 +
83 + 'cipher' => 'AES-256-CBC',
84 +
85 + /*
86 + |--------------------------------------------------------------------------
87 + | Logging Configuration
88 + |--------------------------------------------------------------------------
89 + |
90 + | Here you may configure the log settings for your application. Out of
91 + | the box, Laravel uses the Monolog PHP logging library. This gives
92 + | you a variety of powerful log handlers / formatters to utilize.
93 + |
94 + | Available Settings: "single", "daily", "syslog", "errorlog"
95 + |
96 + */
97 +
98 + 'log' => 'single',
99 +
100 + /*
101 + |--------------------------------------------------------------------------
102 + | Autoloaded Service Providers
103 + |--------------------------------------------------------------------------
104 + |
105 + | The service providers listed here will be automatically loaded on the
106 + | request to your application. Feel free to add your own services to
107 + | this array to grant expanded functionality to your applications.
108 + |
109 + */
110 +
111 + 'providers' => [
112 +
113 + /*
114 + * Laravel Framework Service Providers...
115 + */
116 + Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
117 + Illuminate\Auth\AuthServiceProvider::class,
118 + Illuminate\Broadcasting\BroadcastServiceProvider::class,
119 + Illuminate\Bus\BusServiceProvider::class,
120 + Illuminate\Cache\CacheServiceProvider::class,
121 + Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
122 + Illuminate\Routing\ControllerServiceProvider::class,
123 + Illuminate\Cookie\CookieServiceProvider::class,
124 + Illuminate\Database\DatabaseServiceProvider::class,
125 + Illuminate\Encryption\EncryptionServiceProvider::class,
126 + Illuminate\Filesystem\FilesystemServiceProvider::class,
127 + Illuminate\Foundation\Providers\FoundationServiceProvider::class,
128 + Illuminate\Hashing\HashServiceProvider::class,
129 + Illuminate\Mail\MailServiceProvider::class,
130 + Illuminate\Pagination\PaginationServiceProvider::class,
131 + Illuminate\Pipeline\PipelineServiceProvider::class,
132 + Illuminate\Queue\QueueServiceProvider::class,
133 + Illuminate\Redis\RedisServiceProvider::class,
134 + Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
135 + Illuminate\Session\SessionServiceProvider::class,
136 + Illuminate\Translation\TranslationServiceProvider::class,
137 + Illuminate\Validation\ValidationServiceProvider::class,
138 + Illuminate\View\ViewServiceProvider::class,
139 +
140 + /*
141 + * Application Service Providers...
142 + */
143 + Oxbow\Providers\AppServiceProvider::class,
144 + Oxbow\Providers\EventServiceProvider::class,
145 + Oxbow\Providers\RouteServiceProvider::class,
146 +
147 + ],
148 +
149 + /*
150 + |--------------------------------------------------------------------------
151 + | Class Aliases
152 + |--------------------------------------------------------------------------
153 + |
154 + | This array of class aliases will be registered when this application
155 + | is started. However, feel free to register as many as you wish as
156 + | the aliases are "lazy" loaded so they don't hinder performance.
157 + |
158 + */
159 +
160 + 'aliases' => [
161 +
162 + 'App' => Illuminate\Support\Facades\App::class,
163 + 'Artisan' => Illuminate\Support\Facades\Artisan::class,
164 + 'Auth' => Illuminate\Support\Facades\Auth::class,
165 + 'Blade' => Illuminate\Support\Facades\Blade::class,
166 + 'Bus' => Illuminate\Support\Facades\Bus::class,
167 + 'Cache' => Illuminate\Support\Facades\Cache::class,
168 + 'Config' => Illuminate\Support\Facades\Config::class,
169 + 'Cookie' => Illuminate\Support\Facades\Cookie::class,
170 + 'Crypt' => Illuminate\Support\Facades\Crypt::class,
171 + 'DB' => Illuminate\Support\Facades\DB::class,
172 + 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
173 + 'Event' => Illuminate\Support\Facades\Event::class,
174 + 'File' => Illuminate\Support\Facades\File::class,
175 + 'Hash' => Illuminate\Support\Facades\Hash::class,
176 + 'Input' => Illuminate\Support\Facades\Input::class,
177 + 'Inspiring' => Illuminate\Foundation\Inspiring::class,
178 + 'Lang' => Illuminate\Support\Facades\Lang::class,
179 + 'Log' => Illuminate\Support\Facades\Log::class,
180 + 'Mail' => Illuminate\Support\Facades\Mail::class,
181 + 'Password' => Illuminate\Support\Facades\Password::class,
182 + 'Queue' => Illuminate\Support\Facades\Queue::class,
183 + 'Redirect' => Illuminate\Support\Facades\Redirect::class,
184 + 'Redis' => Illuminate\Support\Facades\Redis::class,
185 + 'Request' => Illuminate\Support\Facades\Request::class,
186 + 'Response' => Illuminate\Support\Facades\Response::class,
187 + 'Route' => Illuminate\Support\Facades\Route::class,
188 + 'Schema' => Illuminate\Support\Facades\Schema::class,
189 + 'Session' => Illuminate\Support\Facades\Session::class,
190 + 'Storage' => Illuminate\Support\Facades\Storage::class,
191 + 'URL' => Illuminate\Support\Facades\URL::class,
192 + 'Validator' => Illuminate\Support\Facades\Validator::class,
193 + 'View' => Illuminate\Support\Facades\View::class,
194 +
195 + ],
196 +
197 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Default Authentication Driver
8 + |--------------------------------------------------------------------------
9 + |
10 + | This option controls the authentication driver that will be utilized.
11 + | This driver manages the retrieval and authentication of the users
12 + | attempting to get access to protected areas of your application.
13 + |
14 + | Supported: "database", "eloquent"
15 + |
16 + */
17 +
18 + 'driver' => 'eloquent',
19 +
20 + /*
21 + |--------------------------------------------------------------------------
22 + | Authentication Model
23 + |--------------------------------------------------------------------------
24 + |
25 + | When using the "Eloquent" authentication driver, we need to know which
26 + | Eloquent model should be used to retrieve your users. Of course, it
27 + | is often just the "User" model but you may use whatever you like.
28 + |
29 + */
30 +
31 + 'model' => Oxbow\User::class,
32 +
33 + /*
34 + |--------------------------------------------------------------------------
35 + | Authentication Table
36 + |--------------------------------------------------------------------------
37 + |
38 + | When using the "Database" authentication driver, we need to know which
39 + | table should be used to retrieve your users. We have chosen a basic
40 + | default value but you may easily change it to any table you like.
41 + |
42 + */
43 +
44 + 'table' => 'users',
45 +
46 + /*
47 + |--------------------------------------------------------------------------
48 + | Password Reset Settings
49 + |--------------------------------------------------------------------------
50 + |
51 + | Here you may set the options for resetting passwords including the view
52 + | that is your password reset e-mail. You can also set the name of the
53 + | table that maintains all of the reset tokens for your application.
54 + |
55 + | The expire time is the number of minutes that the reset token should be
56 + | considered valid. This security feature keeps tokens short-lived so
57 + | they have less time to be guessed. You may change this as needed.
58 + |
59 + */
60 +
61 + 'password' => [
62 + 'email' => 'emails.password',
63 + 'table' => 'password_resets',
64 + 'expire' => 60,
65 + ],
66 +
67 +];
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 + */
15 +
16 + 'default' => env('BROADCAST_DRIVER', 'pusher'),
17 +
18 + /*
19 + |--------------------------------------------------------------------------
20 + | Broadcast Connections
21 + |--------------------------------------------------------------------------
22 + |
23 + | Here you may define all of the broadcast connections that will be used
24 + | to broadcast events to other systems or over websockets. Samples of
25 + | each available type of connection are provided inside this array.
26 + |
27 + */
28 +
29 + 'connections' => [
30 +
31 + 'pusher' => [
32 + 'driver' => 'pusher',
33 + 'key' => env('PUSHER_KEY'),
34 + 'secret' => env('PUSHER_SECRET'),
35 + 'app_id' => env('PUSHER_APP_ID'),
36 + ],
37 +
38 + 'redis' => [
39 + 'driver' => 'redis',
40 + 'connection' => 'default',
41 + ],
42 +
43 + 'log' => [
44 + 'driver' => 'log',
45 + ],
46 +
47 + ],
48 +
49 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Default Cache Store
8 + |--------------------------------------------------------------------------
9 + |
10 + | This option controls the default cache connection that gets used while
11 + | using this caching library. This connection is used when another is
12 + | not explicitly specified when executing a given caching function.
13 + |
14 + */
15 +
16 + 'default' => env('CACHE_DRIVER', 'file'),
17 +
18 + /*
19 + |--------------------------------------------------------------------------
20 + | Cache Stores
21 + |--------------------------------------------------------------------------
22 + |
23 + | Here you may define all of the cache "stores" for your application as
24 + | well as their drivers. You may even define multiple stores for the
25 + | same cache driver to group types of items stored in your caches.
26 + |
27 + */
28 +
29 + 'stores' => [
30 +
31 + 'apc' => [
32 + 'driver' => 'apc',
33 + ],
34 +
35 + 'array' => [
36 + 'driver' => 'array',
37 + ],
38 +
39 + 'database' => [
40 + 'driver' => 'database',
41 + 'table' => 'cache',
42 + 'connection' => null,
43 + ],
44 +
45 + 'file' => [
46 + 'driver' => 'file',
47 + 'path' => storage_path('framework/cache'),
48 + ],
49 +
50 + 'memcached' => [
51 + 'driver' => 'memcached',
52 + 'servers' => [
53 + [
54 + 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
55 + ],
56 + ],
57 + ],
58 +
59 + 'redis' => [
60 + 'driver' => 'redis',
61 + 'connection' => 'default',
62 + ],
63 +
64 + ],
65 +
66 + /*
67 + |--------------------------------------------------------------------------
68 + | Cache Key Prefix
69 + |--------------------------------------------------------------------------
70 + |
71 + | When utilizing a RAM based store such as APC or Memcached, there might
72 + | be other applications utilizing the same cache. So, we'll specify a
73 + | value to get prefixed to all our keys so we can avoid collisions.
74 + |
75 + */
76 +
77 + 'prefix' => 'laravel',
78 +
79 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Additional Compiled Classes
8 + |--------------------------------------------------------------------------
9 + |
10 + | Here you may specify additional classes to include in the compiled file
11 + | generated by the `artisan optimize` command. These should be classes
12 + | that are included on basically every request into the application.
13 + |
14 + */
15 +
16 + 'files' => [
17 + //
18 + ],
19 +
20 + /*
21 + |--------------------------------------------------------------------------
22 + | Compiled File Providers
23 + |--------------------------------------------------------------------------
24 + |
25 + | Here you may list service providers which define a "compiles" function
26 + | that returns additional files that should be compiled, providing an
27 + | easy way to get common files from any packages you are utilizing.
28 + |
29 + */
30 +
31 + 'providers' => [
32 + //
33 + ],
34 +
35 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | PDO Fetch Style
8 + |--------------------------------------------------------------------------
9 + |
10 + | By default, database results will be returned as instances of the PHP
11 + | stdClass object; however, you may desire to retrieve records in an
12 + | array format for simplicity. Here you can tweak the fetch style.
13 + |
14 + */
15 +
16 + 'fetch' => PDO::FETCH_CLASS,
17 +
18 + /*
19 + |--------------------------------------------------------------------------
20 + | Default Database Connection Name
21 + |--------------------------------------------------------------------------
22 + |
23 + | Here you may specify which of the database connections below you wish
24 + | to use as your default connection for all database work. Of course
25 + | you may use many connections at once using the Database library.
26 + |
27 + */
28 +
29 + 'default' => env('DB_CONNECTION', 'mysql'),
30 +
31 + /*
32 + |--------------------------------------------------------------------------
33 + | Database Connections
34 + |--------------------------------------------------------------------------
35 + |
36 + | Here are each of the database connections setup for your application.
37 + | Of course, examples of configuring each database platform that is
38 + | supported by Laravel is shown below to make development simple.
39 + |
40 + |
41 + | All database work in Laravel is done through the PHP PDO facilities
42 + | so make sure you have the driver for your particular database of
43 + | choice installed on your machine before you begin development.
44 + |
45 + */
46 +
47 + 'connections' => [
48 +
49 + 'sqlite' => [
50 + 'driver' => 'sqlite',
51 + 'database' => storage_path('database.sqlite'),
52 + 'prefix' => '',
53 + ],
54 +
55 + 'mysql' => [
56 + 'driver' => 'mysql',
57 + 'host' => env('DB_HOST', 'localhost'),
58 + 'database' => env('DB_DATABASE', 'forge'),
59 + 'username' => env('DB_USERNAME', 'forge'),
60 + 'password' => env('DB_PASSWORD', ''),
61 + 'charset' => 'utf8',
62 + 'collation' => 'utf8_unicode_ci',
63 + 'prefix' => '',
64 + 'strict' => false,
65 + ],
66 +
67 + 'pgsql' => [
68 + 'driver' => 'pgsql',
69 + 'host' => env('DB_HOST', 'localhost'),
70 + 'database' => env('DB_DATABASE', 'forge'),
71 + 'username' => env('DB_USERNAME', 'forge'),
72 + 'password' => env('DB_PASSWORD', ''),
73 + 'charset' => 'utf8',
74 + 'prefix' => '',
75 + 'schema' => 'public',
76 + ],
77 +
78 + 'sqlsrv' => [
79 + 'driver' => 'sqlsrv',
80 + 'host' => env('DB_HOST', 'localhost'),
81 + 'database' => env('DB_DATABASE', 'forge'),
82 + 'username' => env('DB_USERNAME', 'forge'),
83 + 'password' => env('DB_PASSWORD', ''),
84 + 'charset' => 'utf8',
85 + 'prefix' => '',
86 + ],
87 +
88 + ],
89 +
90 + /*
91 + |--------------------------------------------------------------------------
92 + | Migration Repository Table
93 + |--------------------------------------------------------------------------
94 + |
95 + | This table keeps track of all the migrations that have already run for
96 + | your application. Using this information, we can determine which of
97 + | the migrations on disk haven't actually been run in the database.
98 + |
99 + */
100 +
101 + 'migrations' => 'migrations',
102 +
103 + /*
104 + |--------------------------------------------------------------------------
105 + | Redis Databases
106 + |--------------------------------------------------------------------------
107 + |
108 + | Redis is an open source, fast, and advanced key-value store that also
109 + | provides a richer set of commands than a typical key-value systems
110 + | such as APC or Memcached. Laravel makes it easy to dig right in.
111 + |
112 + */
113 +
114 + 'redis' => [
115 +
116 + 'cluster' => false,
117 +
118 + 'default' => [
119 + 'host' => '127.0.0.1',
120 + 'port' => 6379,
121 + 'database' => 0,
122 + ],
123 +
124 + ],
125 +
126 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Default Filesystem Disk
8 + |--------------------------------------------------------------------------
9 + |
10 + | Here you may specify the default filesystem disk that should be used
11 + | by the framework. A "local" driver, as well as a variety of cloud
12 + | based drivers are available for your choosing. Just store away!
13 + |
14 + | Supported: "local", "ftp", "s3", "rackspace"
15 + |
16 + */
17 +
18 + 'default' => 'local',
19 +
20 + /*
21 + |--------------------------------------------------------------------------
22 + | Default Cloud Filesystem Disk
23 + |--------------------------------------------------------------------------
24 + |
25 + | Many applications store files both locally and in the cloud. For this
26 + | reason, you may specify a default "cloud" driver here. This driver
27 + | will be bound as the Cloud disk implementation in the container.
28 + |
29 + */
30 +
31 + 'cloud' => 's3',
32 +
33 + /*
34 + |--------------------------------------------------------------------------
35 + | Filesystem Disks
36 + |--------------------------------------------------------------------------
37 + |
38 + | Here you may configure as many filesystem "disks" as you wish, and you
39 + | may even configure multiple disks of the same driver. Defaults have
40 + | been setup for each driver as an example of the required options.
41 + |
42 + */
43 +
44 + 'disks' => [
45 +
46 + 'local' => [
47 + 'driver' => 'local',
48 + 'root' => storage_path('app'),
49 + ],
50 +
51 + 'ftp' => [
52 + 'driver' => 'ftp',
53 + 'host' => 'ftp.example.com',
54 + 'username' => 'your-username',
55 + 'password' => 'your-password',
56 +
57 + // Optional FTP Settings...
58 + // 'port' => 21,
59 + // 'root' => '',
60 + // 'passive' => true,
61 + // 'ssl' => true,
62 + // 'timeout' => 30,
63 + ],
64 +
65 + 's3' => [
66 + 'driver' => 's3',
67 + 'key' => 'your-key',
68 + 'secret' => 'your-secret',
69 + 'region' => 'your-region',
70 + 'bucket' => 'your-bucket',
71 + ],
72 +
73 + 'rackspace' => [
74 + 'driver' => 'rackspace',
75 + 'username' => 'your-username',
76 + 'key' => 'your-key',
77 + 'container' => 'your-container',
78 + 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
79 + 'region' => 'IAD',
80 + 'url_type' => 'publicURL',
81 + ],
82 +
83 + ],
84 +
85 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Mail Driver
8 + |--------------------------------------------------------------------------
9 + |
10 + | Laravel supports both SMTP and PHP's "mail" function as drivers for the
11 + | sending of e-mail. You may specify which one you're using throughout
12 + | your application here. By default, Laravel is setup for SMTP mail.
13 + |
14 + | Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "ses", "log"
15 + |
16 + */
17 +
18 + 'driver' => env('MAIL_DRIVER', 'smtp'),
19 +
20 + /*
21 + |--------------------------------------------------------------------------
22 + | SMTP Host Address
23 + |--------------------------------------------------------------------------
24 + |
25 + | Here you may provide the host address of the SMTP server used by your
26 + | applications. A default option is provided that is compatible with
27 + | the Mailgun mail service which will provide reliable deliveries.
28 + |
29 + */
30 +
31 + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
32 +
33 + /*
34 + |--------------------------------------------------------------------------
35 + | SMTP Host Port
36 + |--------------------------------------------------------------------------
37 + |
38 + | This is the SMTP port used by your application to deliver e-mails to
39 + | users of the application. Like the host we have set this value to
40 + | stay compatible with the Mailgun e-mail application by default.
41 + |
42 + */
43 +
44 + 'port' => env('MAIL_PORT', 587),
45 +
46 + /*
47 + |--------------------------------------------------------------------------
48 + | Global "From" Address
49 + |--------------------------------------------------------------------------
50 + |
51 + | You may wish for all e-mails sent by your application to be sent from
52 + | the same address. Here, you may specify a name and address that is
53 + | used globally for all e-mails that are sent by your application.
54 + |
55 + */
56 +
57 + 'from' => ['address' => null, 'name' => null],
58 +
59 + /*
60 + |--------------------------------------------------------------------------
61 + | E-Mail Encryption Protocol
62 + |--------------------------------------------------------------------------
63 + |
64 + | Here you may specify the encryption protocol that should be used when
65 + | the application send e-mail messages. A sensible default using the
66 + | transport layer security protocol should provide great security.
67 + |
68 + */
69 +
70 + 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
71 +
72 + /*
73 + |--------------------------------------------------------------------------
74 + | SMTP Server Username
75 + |--------------------------------------------------------------------------
76 + |
77 + | If your SMTP server requires a username for authentication, you should
78 + | set it here. This will get used to authenticate with your server on
79 + | connection. You may also set the "password" value below this one.
80 + |
81 + */
82 +
83 + 'username' => env('MAIL_USERNAME'),
84 +
85 + /*
86 + |--------------------------------------------------------------------------
87 + | SMTP Server Password
88 + |--------------------------------------------------------------------------
89 + |
90 + | Here you may set the password required by your SMTP server to send out
91 + | messages from your application. This will be given to the server on
92 + | connection so that the application will be able to send messages.
93 + |
94 + */
95 +
96 + 'password' => env('MAIL_PASSWORD'),
97 +
98 + /*
99 + |--------------------------------------------------------------------------
100 + | Sendmail System Path
101 + |--------------------------------------------------------------------------
102 + |
103 + | When using the "sendmail" driver to send e-mails, we will need to know
104 + | the path to where Sendmail lives on this server. A default path has
105 + | been provided here, which will work well on most of your systems.
106 + |
107 + */
108 +
109 + 'sendmail' => '/usr/sbin/sendmail -bs',
110 +
111 + /*
112 + |--------------------------------------------------------------------------
113 + | Mail "Pretend"
114 + |--------------------------------------------------------------------------
115 + |
116 + | When this option is enabled, e-mail will not actually be sent over the
117 + | web and will instead be written to your application's logs files so
118 + | you may inspect the message. This is great for local development.
119 + |
120 + */
121 +
122 + 'pretend' => false,
123 +
124 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Default Queue Driver
8 + |--------------------------------------------------------------------------
9 + |
10 + | The Laravel queue API supports a variety of back-ends via an unified
11 + | API, giving you convenient access to each back-end using the same
12 + | syntax for each one. Here you may set the default queue driver.
13 + |
14 + | Supported: "null", "sync", "database", "beanstalkd",
15 + | "sqs", "iron", "redis"
16 + |
17 + */
18 +
19 + 'default' => env('QUEUE_DRIVER', 'sync'),
20 +
21 + /*
22 + |--------------------------------------------------------------------------
23 + | Queue Connections
24 + |--------------------------------------------------------------------------
25 + |
26 + | Here you may configure the connection information for each server that
27 + | is used by your application. A default configuration has been added
28 + | for each back-end shipped with Laravel. You are free to add more.
29 + |
30 + */
31 +
32 + 'connections' => [
33 +
34 + 'sync' => [
35 + 'driver' => 'sync',
36 + ],
37 +
38 + 'database' => [
39 + 'driver' => 'database',
40 + 'table' => 'jobs',
41 + 'queue' => 'default',
42 + 'expire' => 60,
43 + ],
44 +
45 + 'beanstalkd' => [
46 + 'driver' => 'beanstalkd',
47 + 'host' => 'localhost',
48 + 'queue' => 'default',
49 + 'ttr' => 60,
50 + ],
51 +
52 + 'sqs' => [
53 + 'driver' => 'sqs',
54 + 'key' => 'your-public-key',
55 + 'secret' => 'your-secret-key',
56 + 'queue' => 'your-queue-url',
57 + 'region' => 'us-east-1',
58 + ],
59 +
60 + 'iron' => [
61 + 'driver' => 'iron',
62 + 'host' => 'mq-aws-us-east-1.iron.io',
63 + 'token' => 'your-token',
64 + 'project' => 'your-project-id',
65 + 'queue' => 'your-queue-name',
66 + 'encrypt' => true,
67 + ],
68 +
69 + 'redis' => [
70 + 'driver' => 'redis',
71 + 'connection' => 'default',
72 + 'queue' => 'default',
73 + 'expire' => 60,
74 + ],
75 +
76 + ],
77 +
78 + /*
79 + |--------------------------------------------------------------------------
80 + | Failed Queue Jobs
81 + |--------------------------------------------------------------------------
82 + |
83 + | These options configure the behavior of failed queue job logging so you
84 + | can control which database and table are used to store the jobs that
85 + | have failed. You may change them to any database / table you wish.
86 + |
87 + */
88 +
89 + 'failed' => [
90 + 'database' => 'mysql', 'table' => 'failed_jobs',
91 + ],
92 +
93 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Third Party Services
8 + |--------------------------------------------------------------------------
9 + |
10 + | This file is for storing the credentials for third party services such
11 + | as Stripe, Mailgun, Mandrill, and others. This file provides a sane
12 + | default location for this type of information, allowing packages
13 + | to have a conventional place to find your various credentials.
14 + |
15 + */
16 +
17 + 'mailgun' => [
18 + 'domain' => '',
19 + 'secret' => '',
20 + ],
21 +
22 + 'mandrill' => [
23 + 'secret' => '',
24 + ],
25 +
26 + 'ses' => [
27 + 'key' => '',
28 + 'secret' => '',
29 + 'region' => 'us-east-1',
30 + ],
31 +
32 + 'stripe' => [
33 + 'model' => Oxbow\User::class,
34 + 'key' => '',
35 + 'secret' => '',
36 + ],
37 +
38 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Default Session Driver
8 + |--------------------------------------------------------------------------
9 + |
10 + | This option controls the default session "driver" that will be used on
11 + | requests. By default, we will use the lightweight native driver but
12 + | you may specify any of the other wonderful drivers provided here.
13 + |
14 + | Supported: "file", "cookie", "database", "apc",
15 + | "memcached", "redis", "array"
16 + |
17 + */
18 +
19 + 'driver' => env('SESSION_DRIVER', 'file'),
20 +
21 + /*
22 + |--------------------------------------------------------------------------
23 + | Session Lifetime
24 + |--------------------------------------------------------------------------
25 + |
26 + | Here you may specify the number of minutes that you wish the session
27 + | to be allowed to remain idle before it expires. If you want them
28 + | to immediately expire on the browser closing, set that option.
29 + |
30 + */
31 +
32 + 'lifetime' => 120,
33 +
34 + 'expire_on_close' => false,
35 +
36 + /*
37 + |--------------------------------------------------------------------------
38 + | Session Encryption
39 + |--------------------------------------------------------------------------
40 + |
41 + | This option allows you to easily specify that all of your session data
42 + | should be encrypted before it is stored. All encryption will be run
43 + | automatically by Laravel and you can use the Session like normal.
44 + |
45 + */
46 +
47 + 'encrypt' => false,
48 +
49 + /*
50 + |--------------------------------------------------------------------------
51 + | Session File Location
52 + |--------------------------------------------------------------------------
53 + |
54 + | When using the native session driver, we need a location where session
55 + | files may be stored. A default has been set for you but a different
56 + | location may be specified. This is only needed for file sessions.
57 + |
58 + */
59 +
60 + 'files' => storage_path('framework/sessions'),
61 +
62 + /*
63 + |--------------------------------------------------------------------------
64 + | Session Database Connection
65 + |--------------------------------------------------------------------------
66 + |
67 + | When using the "database" or "redis" session drivers, you may specify a
68 + | connection that should be used to manage these sessions. This should
69 + | correspond to a connection in your database configuration options.
70 + |
71 + */
72 +
73 + 'connection' => null,
74 +
75 + /*
76 + |--------------------------------------------------------------------------
77 + | Session Database Table
78 + |--------------------------------------------------------------------------
79 + |
80 + | When using the "database" session driver, you may specify the table we
81 + | should use to manage the sessions. Of course, a sensible default is
82 + | provided for you; however, you are free to change this as needed.
83 + |
84 + */
85 +
86 + 'table' => 'sessions',
87 +
88 + /*
89 + |--------------------------------------------------------------------------
90 + | Session Sweeping Lottery
91 + |--------------------------------------------------------------------------
92 + |
93 + | Some session drivers must manually sweep their storage location to get
94 + | rid of old sessions from storage. Here are the chances that it will
95 + | happen on a given request. By default, the odds are 2 out of 100.
96 + |
97 + */
98 +
99 + 'lottery' => [2, 100],
100 +
101 + /*
102 + |--------------------------------------------------------------------------
103 + | Session Cookie Name
104 + |--------------------------------------------------------------------------
105 + |
106 + | Here you may change the name of the cookie used to identify a session
107 + | instance by ID. The name specified here will get used every time a
108 + | new session cookie is created by the framework for every driver.
109 + |
110 + */
111 +
112 + 'cookie' => 'laravel_session',
113 +
114 + /*
115 + |--------------------------------------------------------------------------
116 + | Session Cookie Path
117 + |--------------------------------------------------------------------------
118 + |
119 + | The session cookie path determines the path for which the cookie will
120 + | be regarded as available. Typically, this will be the root path of
121 + | your application but you are free to change this when necessary.
122 + |
123 + */
124 +
125 + 'path' => '/',
126 +
127 + /*
128 + |--------------------------------------------------------------------------
129 + | Session Cookie Domain
130 + |--------------------------------------------------------------------------
131 + |
132 + | Here you may change the domain of the cookie used to identify a session
133 + | in your application. This will determine which domains the cookie is
134 + | available to in your application. A sensible default has been set.
135 + |
136 + */
137 +
138 + 'domain' => null,
139 +
140 + /*
141 + |--------------------------------------------------------------------------
142 + | HTTPS Only Cookies
143 + |--------------------------------------------------------------------------
144 + |
145 + | By setting this option to true, session cookies will only be sent back
146 + | to the server if the browser has a HTTPS connection. This will keep
147 + | the cookie from being sent to you if it can not be done securely.
148 + |
149 + */
150 +
151 + 'secure' => false,
152 +
153 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | View Storage Paths
8 + |--------------------------------------------------------------------------
9 + |
10 + | Most templating systems load templates from disk. Here you may specify
11 + | an array of paths that should be checked for your views. Of course
12 + | the usual Laravel view path has already been registered for you.
13 + |
14 + */
15 +
16 + 'paths' => [
17 + realpath(base_path('resources/views')),
18 + ],
19 +
20 + /*
21 + |--------------------------------------------------------------------------
22 + | Compiled View Path
23 + |--------------------------------------------------------------------------
24 + |
25 + | This option determines where all the compiled Blade templates will be
26 + | stored for your application. Typically, this is within the storage
27 + | directory. However, as usual, you are free to change this value.
28 + |
29 + */
30 +
31 + 'compiled' => realpath(storage_path('framework/views')),
32 +
33 +];
1 +<?php
2 +
3 +/*
4 +|--------------------------------------------------------------------------
5 +| Model Factories
6 +|--------------------------------------------------------------------------
7 +|
8 +| Here you may define all of your model factories. Model factories give
9 +| you a convenient way to create models for testing and seeding your
10 +| database. Just tell the factory how a default model should look.
11 +|
12 +*/
13 +
14 +$factory->define(Oxbow\User::class, function ($faker) {
15 + return [
16 + 'name' => $faker->name,
17 + 'email' => $faker->email,
18 + 'password' => str_random(10),
19 + 'remember_token' => str_random(10),
20 + ];
21 +});
1 +<?php
2 +
3 +use Illuminate\Database\Schema\Blueprint;
4 +use Illuminate\Database\Migrations\Migration;
5 +
6 +class CreateUsersTable extends Migration
7 +{
8 + /**
9 + * Run the migrations.
10 + *
11 + * @return void
12 + */
13 + public function up()
14 + {
15 + Schema::create('users', function (Blueprint $table) {
16 + $table->increments('id');
17 + $table->string('name');
18 + $table->string('email')->unique();
19 + $table->string('password', 60);
20 + $table->rememberToken();
21 + $table->timestamps();
22 + });
23 + }
24 +
25 + /**
26 + * Reverse the migrations.
27 + *
28 + * @return void
29 + */
30 + public function down()
31 + {
32 + Schema::drop('users');
33 + }
34 +}
1 +<?php
2 +
3 +use Illuminate\Database\Schema\Blueprint;
4 +use Illuminate\Database\Migrations\Migration;
5 +
6 +class CreatePasswordResetsTable extends Migration
7 +{
8 + /**
9 + * Run the migrations.
10 + *
11 + * @return void
12 + */
13 + public function up()
14 + {
15 + Schema::create('password_resets', function (Blueprint $table) {
16 + $table->string('email')->index();
17 + $table->string('token')->index();
18 + $table->timestamp('created_at');
19 + });
20 + }
21 +
22 + /**
23 + * Reverse the migrations.
24 + *
25 + * @return void
26 + */
27 + public function down()
28 + {
29 + Schema::drop('password_resets');
30 + }
31 +}
1 +<?php
2 +
3 +use Illuminate\Database\Schema\Blueprint;
4 +use Illuminate\Database\Migrations\Migration;
5 +
6 +class CreateBooksTable extends Migration
7 +{
8 + /**
9 + * Run the migrations.
10 + *
11 + * @return void
12 + */
13 + public function up()
14 + {
15 + Schema::create('books', function (Blueprint $table) {
16 + $table->increments('id');
17 + $table->string('name');
18 + $table->string('slug')->indexed();
19 + $table->text('description');
20 + $table->timestamps();
21 + });
22 + }
23 +
24 + /**
25 + * Reverse the migrations.
26 + *
27 + * @return void
28 + */
29 + public function down()
30 + {
31 + Schema::drop('books');
32 + }
33 +}
1 +<?php
2 +
3 +use Illuminate\Database\Schema\Blueprint;
4 +use Illuminate\Database\Migrations\Migration;
5 +
6 +class CreatePagesTable extends Migration
7 +{
8 + /**
9 + * Run the migrations.
10 + *
11 + * @return void
12 + */
13 + public function up()
14 + {
15 + Schema::create('pages', function (Blueprint $table) {
16 + $table->increments('id');
17 + $table->timestamps();
18 + });
19 + }
20 +
21 + /**
22 + * Reverse the migrations.
23 + *
24 + * @return void
25 + */
26 + public function down()
27 + {
28 + Schema::drop('pages');
29 + }
30 +}
File mode changed
1 +<?php
2 +
3 +use Illuminate\Database\Seeder;
4 +use Illuminate\Database\Eloquent\Model;
5 +
6 +class DatabaseSeeder extends Seeder
7 +{
8 + /**
9 + * Run the database seeds.
10 + *
11 + * @return void
12 + */
13 + public function run()
14 + {
15 + Model::unguard();
16 +
17 + // $this->call(UserTableSeeder::class);
18 +
19 + Model::reguard();
20 + }
21 +}
1 +var elixir = require('laravel-elixir');
2 +
3 +/*
4 + |--------------------------------------------------------------------------
5 + | Elixir Asset Management
6 + |--------------------------------------------------------------------------
7 + |
8 + | Elixir provides a clean, fluent API for defining some basic Gulp tasks
9 + | for your Laravel application. By default, we are compiling the Sass
10 + | file for our application, as well as publishing vendor resources.
11 + |
12 + */
13 +
14 +elixir(function(mix) {
15 + mix.sass('styles.scss');
16 +});
1 +{
2 + "private": true,
3 + "devDependencies": {
4 + "gulp": "^3.8.8"
5 + },
6 + "dependencies": {
7 + "laravel-elixir": "^2.0.0",
8 + "bootstrap-sass": "^3.0.0"
9 + }
10 +}
1 +suites:
2 + main:
3 + namespace: Oxbow
4 + psr4_prefix: Oxbow
5 + src_path: app
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<phpunit backupGlobals="false"
3 + backupStaticAttributes="false"
4 + bootstrap="bootstrap/autoload.php"
5 + colors="true"
6 + convertErrorsToExceptions="true"
7 + convertNoticesToExceptions="true"
8 + convertWarningsToExceptions="true"
9 + processIsolation="false"
10 + stopOnFailure="false"
11 + syntaxCheck="false">
12 + <testsuites>
13 + <testsuite name="Application Test Suite">
14 + <directory>./tests/</directory>
15 + </testsuite>
16 + </testsuites>
17 + <filter>
18 + <whitelist>
19 + <directory suffix=".php">app/</directory>
20 + </whitelist>
21 + </filter>
22 + <php>
23 + <env name="APP_ENV" value="testing"/>
24 + <env name="CACHE_DRIVER" value="array"/>
25 + <env name="SESSION_DRIVER" value="array"/>
26 + <env name="QUEUE_DRIVER" value="sync"/>
27 + </php>
28 +</phpunit>
1 +<IfModule mod_rewrite.c>
2 + <IfModule mod_negotiation.c>
3 + Options -MultiViews
4 + </IfModule>
5 +
6 + RewriteEngine On
7 +
8 + # Redirect Trailing Slashes If Not A Folder...
9 + RewriteCond %{REQUEST_FILENAME} !-d
10 + RewriteRule ^(.*)/$ /$1 [L,R=301]
11 +
12 + # Handle Front Controller...
13 + RewriteCond %{REQUEST_FILENAME} !-d
14 + RewriteCond %{REQUEST_FILENAME} !-f
15 + RewriteRule ^ index.php [L]
16 +</IfModule>
File mode changed
1 +<?php
2 +
3 +/**
4 + * Laravel - A PHP Framework For Web Artisans
5 + *
6 + * @package Laravel
7 + * @author Taylor Otwell <taylorotwell@gmail.com>
8 + */
9 +
10 +/*
11 +|--------------------------------------------------------------------------
12 +| Register The Auto Loader
13 +|--------------------------------------------------------------------------
14 +|
15 +| Composer provides a convenient, automatically generated class loader for
16 +| our application. We just need to utilize it! We'll simply require it
17 +| into the script here so that we don't have to worry about manual
18 +| loading any of our classes later on. It feels nice to relax.
19 +|
20 +*/
21 +
22 +require __DIR__.'/../bootstrap/autoload.php';
23 +
24 +/*
25 +|--------------------------------------------------------------------------
26 +| Turn On The Lights
27 +|--------------------------------------------------------------------------
28 +|
29 +| We need to illuminate PHP development, so let us turn on the lights.
30 +| This bootstraps the framework and gets it ready for use, then it
31 +| will load up this application so that we can run it and send
32 +| the responses back to the browser and delight our users.
33 +|
34 +*/
35 +
36 +$app = require_once __DIR__.'/../bootstrap/app.php';
37 +
38 +/*
39 +|--------------------------------------------------------------------------
40 +| Run The Application
41 +|--------------------------------------------------------------------------
42 +|
43 +| Once we have the application, we can handle the incoming request
44 +| through the kernel, and send the associated response back to
45 +| the client's browser allowing them to enjoy the creative
46 +| and wonderful application we have prepared for them.
47 +|
48 +*/
49 +
50 +$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
51 +
52 +$response = $kernel->handle(
53 + $request = Illuminate\Http\Request::capture()
54 +);
55 +
56 +$response->send();
57 +
58 +$kernel->terminate($request, $response);
1 +User-agent: *
2 +Disallow:
1 +## Laravel PHP Framework
2 +
3 +[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework)
4 +[![Total Downloads](https://poser.pugx.org/laravel/framework/d/total.svg)](https://packagist.org/packages/laravel/framework)
5 +[![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework)
6 +[![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework)
7 +[![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework)
8 +
9 +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching.
10 +
11 +Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.
12 +
13 +## Official Documentation
14 +
15 +Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs).
16 +
17 +## Contributing
18 +
19 +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions).
20 +
21 +## Security Vulnerabilities
22 +
23 +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
24 +
25 +### License
26 +
27 +The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
1 +
2 +/*
3 +* This file container all block styling including background shading,
4 +* margins, paddings & borders.
5 +*/
6 +
7 +
8 +/*
9 +* Background Shading
10 +*/
11 +.shaded {
12 + background-color: #f1f1f1;
13 + &.pos {
14 + background-color: lighten($positive, 40%);
15 + }
16 + &.neg {
17 + background-color: lighten($negative, 20%);
18 + }
19 + &.primary {
20 + background-color: lighten($primary, 40%);
21 + }
22 + &.secondary {
23 + background-color: lighten($secondary, 30%);
24 + }
25 +}
26 +
27 +/*
28 +* Bordering
29 +*/
30 +.bordered {
31 + border: 1px solid #BBB;
32 + &.pos {
33 + border-color: $positive;
34 + }
35 + &.neg {
36 + border-color: $negative;
37 + }
38 + &.primary {
39 + border-color: $primary;
40 + }
41 + &.secondary {
42 + border-color: $secondary;
43 + }
44 + &.thick {
45 + border-width: 2px;
46 + }
47 +}
48 +.rounded {
49 + border-radius: 3px;
50 +}
51 +
52 +/*
53 +* Padding
54 +*/
55 +.nopadding {
56 + padding: 0;
57 +}
58 +.padded {
59 + padding: $-l;
60 + &.large {
61 + padding: $-xl;
62 + }
63 +}
64 +.padded-vertical, .padded-top {
65 + padding-top: $-m;
66 + &.large {
67 + padding-top: $-xl;
68 + }
69 +}
70 +.padded-vertical, .padded-bottom {
71 + padding-bottom: $-m;
72 + &.large {
73 + padding-bottom: $-xl;
74 + }
75 +}
76 +.padded-horizontal, .padded-left {
77 + padding-left: $-m;
78 + &.large {
79 + padding-left: $-xl;
80 + }
81 +}
82 +.padded-horizontal, .padded-right {
83 + padding-right: $-m;
84 + &.large {
85 + padding-right: $-xl;
86 + }
87 +}
88 +
89 +/*
90 +* Margins
91 +*/
92 +.margins {
93 + margin: $-l;
94 + &.large {
95 + margin: $-xl;
96 + }
97 +}
98 +.margins-vertical, .margin-top {
99 + margin-top: $-m;
100 + &.large {
101 + margin-top: $-xl;
102 + }
103 +}
104 +.margins-vertical, .margin-bottom {
105 + margin-bottom: $-m;
106 + &.large {
107 + margin-bottom: $-xl;
108 + }
109 +}
110 +.margins-horizontal, .margin-left {
111 + margin-left: $-m;
112 + &.large {
113 + margin-left: $-xl;
114 + }
115 +}
116 +.margins-horizontal, .margin-right {
117 + margin-right: $-m;
118 + &.large {
119 + margin-right: $-xl;
120 + }
121 +}
1 +
2 +@mixin generate-button-colors($textColor, $backgroundColor) {
3 + background-color: $backgroundColor;
4 + color: $textColor;
5 + &:hover {
6 + background-color: lighten($backgroundColor, 8%);
7 + box-shadow: $bs-med;
8 + text-decoration: none;
9 + color: $textColor;
10 + }
11 + &:active {
12 + background-color: darken($backgroundColor, 8%);
13 + }
14 +}
15 +
16 +// Button Specific Variables
17 +$button-border-radius: 3px;
18 +
19 +.button-base {
20 + text-decoration: none;
21 + font-size: $fs-m;
22 + line-height: 1.4em;
23 + padding: $-xs $-m;
24 + margin: $-xs $-xs $-xs 0;
25 + display: inline-block;
26 + border: none;
27 + outline: 0;
28 + border-radius: $button-border-radius;
29 + cursor: pointer;
30 + transition: all ease-in-out 80ms;
31 + box-shadow: 0 0 0 0 #000;
32 + @include generate-button-colors(#EEE, $primary);
33 +}
34 +
35 +.button, button[type="button"], input[type="button"], input[type="submit"] {
36 + @extend .button-base;
37 + &.pos {
38 + @include generate-button-colors(#EEE, $positive);
39 + }
40 + &.neg {
41 + @include generate-button-colors(#EEE, $negative);
42 + }
43 + &.secondary {
44 + @include generate-button-colors(#EEE, $secondary);
45 + }
46 +}
47 +
48 +.button-group {
49 + @include clearfix;
50 + .button, button[type="button"] {
51 + margin: $-xs 0 $-xs 0;
52 + float: left;
53 + border-radius: 0;
54 + &:first-child {
55 + border-radius: $button-border-radius 0 0 $button-border-radius;
56 + }
57 + &:last-child {
58 + border-radius: 0 $button-border-radius $button-border-radius 0;
59 + }
60 + }
61 +}
1 +
2 +.input-base {
3 + background-color: #FFF;
4 + border-radius: 2px;
5 + border: 1px solid #BBB;
6 + border-top: 1px solid #AAA;
7 + display: inline-block;
8 + font-size: $fs-s;
9 + font-family: $text;
10 + padding: $-xs;
11 + color: #222;
12 + width: 250px;
13 + max-width: 100%;
14 + -webkit-appearance:none;
15 + &.neg, &.invalid {
16 + border: 1px solid $negative;
17 + }
18 + &.pos, &.valid {
19 + border: 1px solid $positive;
20 + }
21 + &.disabled, &[disabled] {
22 + background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAMUlEQVQIW2NkwAGuXbv2nxGbHEhCS0uLEUMSJgHShCKJLIEiiS4Bl8QmAZbEJQGSBAC62BuJ+tt7zgAAAABJRU5ErkJggg==);
23 + }
24 +}
25 +
26 +label {
27 + display: block;
28 + line-height: 1.4em;
29 + font-size: 0.9em;
30 + font-weight: 500;
31 + color: #333;
32 +}
33 +
34 +label.radio, label.checkbox {
35 + font-weight: 400;
36 + input[type="radio"], input[type="checkbox"] {
37 + margin-right: $-xs;
38 + }
39 +}
40 +
41 +input[type="text"], input[type="number"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], select, textarea {
42 + @extend .input-base;
43 +}
44 +
45 +.form-group {
46 + margin-bottom: $-s;
47 +}
1 +* {
2 + box-sizing: border-box;
3 +}
4 +html {
5 + background-color: #FFF;
6 +}
7 +body {
8 + font-family: $text;
9 + font-size: $fs-m;
10 + line-height: 1.4em;
11 + color: #444;
12 + -webkit-font-smoothing: antialiased;
13 +}
1 +// Responsive breakpoint control
2 +@mixin smaller-than($size) {
3 + @media screen and (max-width: $size) { @content; }
4 +}
5 +@mixin larger-than($size) {
6 + @media screen and (min-width: $size) { @content; }
7 +}
8 +@mixin clearfix() {
9 + &:after {
10 + display: block;
11 + content: '';
12 + font-size: 0;
13 + clear: both;
14 + position: relative;
15 + }
16 +}
1 +/* http://meyerweb.com/eric/tools/css/reset/
2 + v2.0 | 20110126
3 + License: none (public domain)
4 +*/
5 +
6 +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
7 + margin: 0;
8 + padding: 0;
9 + border: 0;
10 + font-size: 100%;
11 + font: inherit;
12 + vertical-align: baseline; }
13 +
14 +/* HTML5 display-role reset for older browsers */
15 +
16 +article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
17 + display: block; }
18 +
19 +body {
20 + line-height: 1; }
21 +
22 +ol, ul {
23 + list-style: none; }
24 +
25 +blockquote, q {
26 + quotes: none; }
27 +
28 +blockquote {
29 + &:before, &:after {
30 + content: '';
31 + content: none; } }
32 +
33 +q {
34 + &:before, &:after {
35 + content: '';
36 + content: none; } }
37 +
38 +table {
39 + border-collapse: collapse;
40 + border-spacing: 0; }
1 +/*
2 +* Header Styles
3 +*/
4 +
5 +h1 {
6 + font-size: 5.625em;
7 + line-height: 1.22222222em;
8 + margin-top: 0.48888889em;
9 + margin-bottom: 0.24444444em;
10 +}
11 +h2 {
12 + font-size: 3.1875em;
13 + line-height: 1.294117647em;
14 + margin-top: 0.8627451em;
15 + margin-bottom: 0.43137255em;
16 +}
17 +h3 {
18 + font-size: 1.75em;
19 + line-height: 1.571428572em;
20 + margin-top: 0.78571429em;
21 + margin-bottom: 0.43137255em;
22 +}
23 +h4 {
24 + font-size: 1em;
25 + line-height: 1.375em;
26 + margin-top: 1.375em;
27 + margin-bottom: 1.375em;
28 +}
29 +
30 +h1, h2, h3, h4 {
31 + .subheader {
32 + display: block;
33 + font-size: 0.5em;
34 + line-height: 1em;
35 + color: lighten($text-dark, 16%);
36 + }
37 +}
38 +
39 +/*
40 +* Link styling
41 +*/
42 +a {
43 + color: $primary;
44 + cursor: pointer;
45 + text-decoration: none;
46 + transition: color ease-in-out 80ms;
47 + &:hover {
48 + text-decoration: underline;
49 + color: darken($primary, 20%);
50 + }
51 +}
52 +
53 +/*
54 +* Other HTML Text Elements
55 +*/
56 +p, ul, ol, pre, table, blockquote {
57 + margin-top: 0.3em;
58 + margin-bottom: 1.375em;
59 +}
60 +
61 +hr {
62 + border: 0;
63 + height: 1px;
64 + border: 0;
65 + background: #e3e0e0;
66 + margin-bottom: $-l;
67 + &.faded {
68 + background-image: linear-gradient(to right, #FFF, #e3e0e0 20%, #e3e0e0 80%, #FFF);
69 + }
70 + &.margin-top {
71 + margin-top: $-l;
72 + }
73 +}
74 +
75 +strong, b, .bold, .strong {
76 + font-weight: bold;
77 + > strong, > b, > .bold, > .strong {
78 + font-weight: bolder;
79 + }
80 +}
81 +
82 +em, i, .italic {
83 + font-style: italic;
84 +}
85 +
86 +small, p.small, span.small, .text-small {
87 + font-size: 0.8em;
88 + color: lighten($text-dark, 20%);
89 +}
90 +
91 +sup, .superscript {
92 + vertical-align: super;
93 + font-size: 0.8em;
94 +}
95 +
96 +pre {
97 + font-family: monospace;
98 + white-space:pre;
99 +}
100 +
101 +blockquote {
102 + display: block;
103 + position: relative;
104 + border-left: 4px solid $primary;
105 + background-color: #F8F8F8;
106 + padding: $-s $-m $-s $-xl;
107 + &:before {
108 + content: "\201C";
109 + font-size: 2em;
110 + font-weight: bold;
111 + position: absolute;
112 + top: $-s;
113 + left: $-s;
114 + color: lighten($text-dark, 20%);
115 + }
116 +}
117 +
118 +.code-base {
119 + background-color: #F8F8F8;
120 + font-family: monospace;
121 + font-size: 0.88em;
122 + border: 1px solid #DDD;
123 + border-radius: 3px;
124 +}
125 +
126 +code {
127 + @extend .code-base;
128 + display: block;
129 + white-space:pre;
130 + line-height: 1.2em;
131 + margin-bottom: 1.2em;
132 +}
133 +
134 +span.code {
135 + @extend .code-base;
136 + padding: 1px $-xs;
137 +}
138 +/*
139 +* Text colors
140 +*/
141 +p.pos, p .pos, span.pos, .text-pos {
142 + color: $positive;
143 +}
144 +
145 +p.neg, p .neg, span.neg, .text-neg {
146 + color: $negative;
147 +}
148 +
149 +p.muted, p .muted, span.muted, .text-muted {
150 + color: lighten($text-dark, 26%);
151 +}
152 +
153 +p.primary, p .primary, span.primary, .text-primary {
154 + color: $primary;
155 +}
156 +
157 +p.secondary, p .secondary, span.secondary, .text-secondary {
158 + color: $secondary;
159 +}
160 +
161 +/*
162 +* Generic text styling classes
163 +*/
164 +.underlined {
165 + text-decoration: underline;
166 +}
167 +
168 +.text-center {
169 + text-align: center;
170 +}
171 +
172 +.text-left {
173 + text-align: left;
174 +}
175 +
176 +.text-right {
177 + text-align: right;
178 +}
1 +// Variables
2 +///////////////
3 +
4 +// Sizes
5 +$max-width: 1100px;
6 +
7 +// Screen breakpoints
8 +$xl: 1100px;
9 +$ipad-width: 1028px; // Is actually 1024 but we go over to ensure functionality.
10 +$l: 1000px;
11 +$m: 800px;
12 +$s: 600px;
13 +$xs: 400px;
14 +$xxs: 360px;
15 +
16 +// Spacing (Margins+Padding)
17 +$-xxxl: 64px;
18 +$-xxl: 48px;
19 +$-xl: 32px;
20 +$-l: 24px;
21 +$-m: 16px;
22 +$-s: 12px;
23 +$-xs: 6px;
24 +$-xxs: 3px;
25 +
26 +// Fonts
27 +$heading: 'Roboto', Helvetica, Arial, sans-serif;
28 +$text: 'Roboto', Helvetica, Arial, sans-serif;
29 +$fs-m: 16px;
30 +$fs-s: 14px;
31 +
32 +// Colours
33 +$primary: #1c77c1;
34 +$secondary: #e27b41;
35 +$positive: #409945;
36 +$negative: #D35252;
37 +
38 +// Text colours
39 +$text-dark: #444;
40 +$text-light: #EEE;
41 +
42 +// Shadows
43 +$bs-light: 0 0 4px 1px #CCC;
44 +$bs-med: 0 1px 3px 1px rgba(76, 76, 76, 0.26);
45 +$bs-hover: 0 2px 2px 1px rgba(0,0,0,.13);
1 +@import "reset";
2 +@import "variables";
3 +@import "mixins";
4 +@import "html";
5 +@import "text";
6 +@import "grid";
7 +@import "blocks";
8 +@import "buttons";
9 +@import "forms";
10 +
11 +header hr {
12 + margin-top: 0;
13 +}
14 +
15 +header .menu {
16 + margin-bottom: 0;
17 + list-style: none;
18 + li {
19 + display: inline-block;
20 + margin-left: $-m;
21 + }
22 +}
...\ No newline at end of file ...\ No newline at end of file
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' => '&laquo; Previous',
17 + 'next' => 'Next &raquo;',
18 +
19 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Password Reminder 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 + 'user' => "We can't find a user with that e-mail address.",
18 + 'token' => 'This password reset token is invalid.',
19 + 'sent' => 'We have e-mailed your password reset link!',
20 + 'reset' => 'Your password has been reset!',
21 +
22 +];
1 +<?php
2 +
3 +return [
4 +
5 + /*
6 + |--------------------------------------------------------------------------
7 + | Validation Language Lines
8 + |--------------------------------------------------------------------------
9 + |
10 + | The following language lines contain the default error messages used by
11 + | the validator class. Some of these rules have multiple versions such
12 + | as the size rules. Feel free to tweak each of these messages here.
13 + |
14 + */
15 +
16 + 'accepted' => 'The :attribute must be accepted.',
17 + 'active_url' => 'The :attribute is not a valid URL.',
18 + 'after' => 'The :attribute must be a date after :date.',
19 + 'alpha' => 'The :attribute may only contain letters.',
20 + 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
21 + 'alpha_num' => 'The :attribute may only contain letters and numbers.',
22 + 'array' => 'The :attribute must be an array.',
23 + 'before' => 'The :attribute must be a date before :date.',
24 + 'between' => [
25 + 'numeric' => 'The :attribute must be between :min and :max.',
26 + 'file' => 'The :attribute must be between :min and :max kilobytes.',
27 + 'string' => 'The :attribute must be between :min and :max characters.',
28 + 'array' => 'The :attribute must have between :min and :max items.',
29 + ],
30 + 'boolean' => 'The :attribute field must be true or false.',
31 + 'confirmed' => 'The :attribute confirmation does not match.',
32 + 'date' => 'The :attribute is not a valid date.',
33 + 'date_format' => 'The :attribute does not match the format :format.',
34 + 'different' => 'The :attribute and :other must be different.',
35 + 'digits' => 'The :attribute must be :digits digits.',
36 + 'digits_between' => 'The :attribute must be between :min and :max digits.',
37 + 'email' => 'The :attribute must be a valid email address.',
38 + 'filled' => 'The :attribute field is required.',
39 + 'exists' => 'The selected :attribute is invalid.',
40 + 'image' => 'The :attribute must be an image.',
41 + 'in' => 'The selected :attribute is invalid.',
42 + 'integer' => 'The :attribute must be an integer.',
43 + 'ip' => 'The :attribute must be a valid IP address.',
44 + 'max' => [
45 + 'numeric' => 'The :attribute may not be greater than :max.',
46 + 'file' => 'The :attribute may not be greater than :max kilobytes.',
47 + 'string' => 'The :attribute may not be greater than :max characters.',
48 + 'array' => 'The :attribute may not have more than :max items.',
49 + ],
50 + 'mimes' => 'The :attribute must be a file of type: :values.',
51 + 'min' => [
52 + 'numeric' => 'The :attribute must be at least :min.',
53 + 'file' => 'The :attribute must be at least :min kilobytes.',
54 + 'string' => 'The :attribute must be at least :min characters.',
55 + 'array' => 'The :attribute must have at least :min items.',
56 + ],
57 + 'not_in' => 'The selected :attribute is invalid.',
58 + 'numeric' => 'The :attribute must be a number.',
59 + 'regex' => 'The :attribute format is invalid.',
60 + 'required' => 'The :attribute field is required.',
61 + 'required_if' => 'The :attribute field is required when :other is :value.',
62 + 'required_with' => 'The :attribute field is required when :values is present.',
63 + 'required_with_all' => 'The :attribute field is required when :values is present.',
64 + 'required_without' => 'The :attribute field is required when :values is not present.',
65 + 'required_without_all' => 'The :attribute field is required when none of :values are present.',
66 + 'same' => 'The :attribute and :other must match.',
67 + 'size' => [
68 + 'numeric' => 'The :attribute must be :size.',
69 + 'file' => 'The :attribute must be :size kilobytes.',
70 + 'string' => 'The :attribute must be :size characters.',
71 + 'array' => 'The :attribute must contain :size items.',
72 + ],
73 + 'string' => 'The :attribute must be a string.',
74 + 'timezone' => 'The :attribute must be a valid zone.',
75 + 'unique' => 'The :attribute has already been taken.',
76 + 'url' => 'The :attribute format is invalid.',
77 +
78 + /*
79 + |--------------------------------------------------------------------------
80 + | Custom Validation Language Lines
81 + |--------------------------------------------------------------------------
82 + |
83 + | Here you may specify custom validation messages for attributes using the
84 + | convention "attribute.rule" to name the lines. This makes it quick to
85 + | specify a specific custom language line for a given attribute rule.
86 + |
87 + */
88 +
89 + 'custom' => [
90 + 'attribute-name' => [
91 + 'rule-name' => 'custom-message',
92 + ],
93 + ],
94 +
95 + /*
96 + |--------------------------------------------------------------------------
97 + | Custom Validation Attributes
98 + |--------------------------------------------------------------------------
99 + |
100 + | The following language lines are used to swap attribute place-holders
101 + | with something more reader friendly such as E-Mail Address instead
102 + | of "email". This simply helps us make messages a little cleaner.
103 + |
104 + */
105 +
106 + 'attributes' => [],
107 +
108 +];
1 +<!DOCTYPE html>
2 +<html>
3 +<head>
4 + <title>Oxbow</title>
5 + <meta name="viewport" content="width=device-width">
6 + <link rel="stylesheet" href="/css/app.css">
7 + <link href='http://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,300italic,100,300' rel='stylesheet' type='text/css'>
8 + <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
9 +</head>
10 +<body>
11 +
12 + <header class="container">
13 + <div class="padded-vertical clearfix">
14 + <div class="logo float left">Oxbow</div>
15 + <ul class="menu float right">
16 + <li><a href="/books">Books</a></li>
17 + </ul>
18 + </div>
19 + <hr>
20 + </header>
21 +
22 + <section class="container">
23 + @yield('content')
24 + </section>
25 +
26 +</body>
27 +</html>
1 +@extends('base')
2 +
3 +@section('content')
4 + <h2>New Book</h2>
5 +
6 + <form action="/books" method="POST">
7 + {{ csrf_field() }}
8 + @include('books/form')
9 + </form>
10 +@stop
...\ No newline at end of file ...\ No newline at end of file
1 +@extends('base')
2 +
3 +@section('content')
4 + <h2>Edit Book</h2>
5 +
6 + <form action="/books/{{$book->slug}}" method="POST">
7 + {{ csrf_field() }}
8 + <input type="hidden" name="_method" value="PUT">
9 + @include('books/form', ['model' => $book])
10 + </form>
11 +@stop
...\ No newline at end of file ...\ No newline at end of file
1 +<div class="form-group">
2 + <label for="name">Name</label>
3 + @include('form/text', ['name' => 'name'])
4 +</div>
5 +<div class="form-group">
6 + <label for="description">Description</label>
7 + @include('form/textarea', ['name' => 'description'])
8 +</div>
9 +<button type="submit" class="button pos">Save</button>
...\ No newline at end of file ...\ No newline at end of file
1 +@extends('base')
2 +
3 +@section('content')
4 +
5 + <div class="row">
6 + <div class="col-md-6">
7 + <a href="/books/create">+ Add new book</a>
8 + </div>
9 + </div>
10 +
11 + <div class="row">
12 + @foreach($books as $book)
13 + <div class="col-md-4 shaded book">
14 + <h3><a href="{{$book->getUrl()}}">{{$book->name}}</a></h3>
15 + <p>{{$book->description}}</p>
16 + <div class="buttons">
17 + <a href="{{$book->getEditUrl()}}" class="button secondary">Edit</a>
18 + @include('form/delete-button', ['url' => '/books/' . $book->id . '/destroy', 'text' => 'Delete'])
19 + </div>
20 + </div>
21 + @endforeach
22 + </div>
23 +
24 +
25 +@stop
...\ No newline at end of file ...\ No newline at end of file
1 +@extends('base')
2 +
3 +@section('content')
4 +
5 + <h2>{{$book->name}}</h2>
6 + <p class="text-muted">{{$book->description}}</p>
7 +@stop
...\ No newline at end of file ...\ No newline at end of file
1 +<!DOCTYPE html>
2 +<html>
3 + <head>
4 + <title>Be right back.</title>
5 +
6 + <link href="//fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
7 +
8 + <style>
9 + html, body {
10 + height: 100%;
11 + }
12 +
13 + body {
14 + margin: 0;
15 + padding: 0;
16 + width: 100%;
17 + color: #B0BEC5;
18 + display: table;
19 + font-weight: 100;
20 + font-family: 'Lato';
21 + }
22 +
23 + .container {
24 + text-align: center;
25 + display: table-cell;
26 + vertical-align: middle;
27 + }
28 +
29 + .content {
30 + text-align: center;
31 + display: inline-block;
32 + }
33 +
34 + .title {
35 + font-size: 72px;
36 + margin-bottom: 40px;
37 + }
38 + </style>
39 + </head>
40 + <body>
41 + <div class="container">
42 + <div class="content">
43 + <div class="title">Be right back.</div>
44 + </div>
45 + </div>
46 + </body>
47 +</html>
1 +<form action="{{$url}}" method="POST">
2 + {{ csrf_field() }}
3 + <input type="hidden" name="_method" value="DELETE">
4 + <button type="submit" class="button neg">{{ isset($text) ? $text : 'Delete' }}</button>
5 +</form>
...\ No newline at end of file ...\ No newline at end of file
1 +<input type="text" id="{{ $name }}" name="{{ $name }}"
2 + @if($errors->has($name)) class="neg" @endif
3 + @if(isset($model) || old($name)) value="{{ old($name) ? old($name) : $model->$name}}" @endif>
4 +@if($errors->has($name))
5 + <div class="text-neg text-small">{{ $errors->first($name) }}</div>
6 +@endif
...\ No newline at end of file ...\ No newline at end of file
1 +<textarea id="{{ $name }}" name="{{ $name }}"
2 + @if($errors->has($name)) class="neg" @endif>@if(isset($model) || old($name)){{ old($name) ? old($name) : $model->$name}}@endif</textarea>
3 +@if($errors->has($name))
4 + <div class="text-neg text-small">{{ $errors->first($name) }}</div>
5 +@endif
...\ No newline at end of file ...\ No newline at end of file
1 +<?php
2 +
3 +/**
4 + * Laravel - A PHP Framework For Web Artisans
5 + *
6 + * @package Laravel
7 + * @author Taylor Otwell <taylorotwell@gmail.com>
8 + */
9 +
10 +$uri = urldecode(
11 + parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
12 +);
13 +
14 +// This file allows us to emulate Apache's "mod_rewrite" functionality from the
15 +// built-in PHP web server. This provides a convenient way to test a Laravel
16 +// application without having installed a "real" web server software here.
17 +if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
18 + return false;
19 +}
20 +
21 +require_once __DIR__.'/public/index.php';
1 +*
2 +!.gitignore
...\ No newline at end of file ...\ No newline at end of file
1 +config.php
2 +routes.php
3 +compiled.php
4 +services.json
5 +events.scanned.php
6 +routes.scanned.php
7 +down
1 +*
2 +!.gitignore
...\ No newline at end of file ...\ No newline at end of file
1 +*
2 +!.gitignore
1 +<?php
2 +
3 +use Illuminate\Foundation\Testing\WithoutMiddleware;
4 +use Illuminate\Foundation\Testing\DatabaseMigrations;
5 +use Illuminate\Foundation\Testing\DatabaseTransactions;
6 +
7 +class ExampleTest extends TestCase
8 +{
9 + /**
10 + * A basic functional test example.
11 + *
12 + * @return void
13 + */
14 + public function testBasicExample()
15 + {
16 + $this->visit('/')
17 + ->see('Laravel 5');
18 + }
19 +}
1 +<?php
2 +
3 +class TestCase extends Illuminate\Foundation\Testing\TestCase
4 +{
5 + /**
6 + * The base URL to use while testing the application.
7 + *
8 + * @var string
9 + */
10 + protected $baseUrl = 'http://localhost';
11 +
12 + /**
13 + * Creates the application.
14 + *
15 + * @return \Illuminate\Foundation\Application
16 + */
17 + public function createApplication()
18 + {
19 + $app = require __DIR__.'/../bootstrap/app.php';
20 +
21 + $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
22 +
23 + return $app;
24 + }
25 +}