├── .env.example ├── .gitattributes ├── .gitignore ├── Procfile ├── app ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── API │ │ │ ├── AdminProjectsController.php │ │ │ └── ProjectsController.php │ │ ├── AdminProjectsController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ └── ResetPasswordController.php │ │ ├── Controller.php │ │ ├── PageController.php │ │ └── ProjectsController.php │ ├── Kernel.php │ └── Middleware │ │ ├── AdminMiddleware.php │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ └── VerifyCsrfToken.php ├── Project.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── Repositories │ └── ProjectRepository.php └── User.php ├── artisan ├── bootstrap ├── app.php ├── autoload.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── database.php ├── filesystems.php ├── github.php ├── mail.php ├── markdown.php ├── queue.php ├── scout.php ├── services.php ├── session.php ├── ttwitter.php └── view.php ├── database ├── .gitignore ├── factories │ └── ModelFactory.php ├── migrations │ ├── 2016_07_23_122307_create_projects_table.php │ ├── 2016_08_06_183718_create_users_table.php │ ├── 2016_08_06_184224_create_password_resets_table.php │ └── 2016_08_09_041919_add_short_description_column_to_projects_table.php └── seeds │ └── DatabaseSeeder.php ├── deploy.sh ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── css │ └── app.css ├── favicon.ico ├── images │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ └── logo.png ├── index.php ├── js │ ├── app.js │ └── laravel.js ├── mix-manifest.json ├── robots.txt └── web.config ├── readme.md ├── resources ├── assets │ ├── js │ │ ├── app.js │ │ ├── bootstrap.js │ │ └── components │ │ │ ├── FormError.vue │ │ │ ├── Pagination.vue │ │ │ ├── Project.vue │ │ │ └── Search.vue │ └── sass │ │ ├── _variables.sass │ │ ├── app.sass │ │ ├── components │ │ ├── components.sass │ │ ├── project-card.sass │ │ └── search.sass │ │ ├── layout │ │ ├── footer.sass │ │ ├── header.sass │ │ └── layout.sass │ │ └── utils.sass ├── lang │ └── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php └── views │ ├── auth │ ├── emails │ │ └── password.blade.php │ ├── login.blade.php │ ├── passwords │ │ ├── email.blade.php │ │ └── reset.blade.php │ └── register.blade.php │ ├── contact.blade.php │ ├── dashboard │ └── projects │ │ ├── edit.blade.php │ │ └── index.blade.php │ ├── errors │ ├── 404.blade.php │ └── 503.blade.php │ ├── includes │ └── flash.blade.php │ ├── layouts │ ├── app.blade.php │ ├── auth.blade.php │ └── dashboard.blade.php │ ├── partials │ ├── filters.blade.php │ ├── hero.blade.php │ └── pagination.blade.php │ ├── projects │ ├── create.blade.php │ ├── index.blade.php │ └── show.blade.php │ └── vendor │ ├── .gitkeep │ └── pagination │ ├── bootstrap-4.blade.php │ ├── default.blade.php │ ├── simple-bootstrap-4.blade.php │ └── simple-default.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ └── ProjectTest.php ├── TestCase.php └── Unit │ └── ProjectTest.php ├── webpack.mix.js └── yarn.lock /.env.example: -------------------------------------------------------------------------------- 1 | APP_ENV=local 2 | APP_KEY= 3 | APP_DEBUG=true 4 | APP_LOG_LEVEL=debug 5 | APP_URL=http://localhost 6 | 7 | DB_CONNECTION=mysql 8 | DB_HOST=127.0.0.1 9 | DB_PORT=3306 10 | DB_DATABASE=homestead 11 | DB_USERNAME=homestead 12 | DB_PASSWORD=secret 13 | 14 | BROADCAST_DRIVER=log 15 | CACHE_DRIVER=file 16 | SESSION_DRIVER=file 17 | QUEUE_DRIVER=sync 18 | 19 | REDIS_HOST=127.0.0.1 20 | REDIS_PASSWORD=null 21 | REDIS_PORT=6379 22 | 23 | MAIL_DRIVER=smtp 24 | MAIL_HOST=mailtrap.io 25 | MAIL_PORT=2525 26 | MAIL_USERNAME=null 27 | MAIL_PASSWORD=null 28 | MAIL_ENCRYPTION=null 29 | 30 | GITHUB_TOKEN= 31 | 32 | SCOUT_DRIVER=algolia 33 | ALGOLIA_APP_ID= 34 | ALGOLIA_KEY= 35 | ALGOLIA_SECRET= 36 | 37 | TWITTER_CONSUMER_KEY= 38 | TWITTER_CONSUMER_SECRET= 39 | TWITTER_ACCESS_TOKEN= 40 | TWITTER_ACCESS_TOKEN_SECRET= 41 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/storage 3 | /storage/*.key 4 | /vendor 5 | /.idea 6 | Homestead.json 7 | Homestead.yaml 8 | .env 9 | .env.testing 10 | /.phpintel 11 | -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: vendor/bin/heroku-php-apache2 public/ 2 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | } 30 | 31 | /** 32 | * Register the Closure based commands for the application. 33 | * 34 | * @return void 35 | */ 36 | protected function commands() 37 | { 38 | require base_path('routes/console.php'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 60 | return response()->json(['error' => 'Unauthenticated.'], 401); 61 | } 62 | 63 | return redirect()->guest('login'); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /app/Http/Controllers/API/AdminProjectsController.php: -------------------------------------------------------------------------------- 1 | project = $project; 20 | } 21 | 22 | /** 23 | * Display list of projects 24 | * 25 | * @return Response 26 | */ 27 | public function index() 28 | { 29 | $projects = $this->project->getAll(); 30 | 31 | return $projects; 32 | } 33 | 34 | /** 35 | * Approve a particular project 36 | * 37 | * @param $slug 38 | * @return Response 39 | */ 40 | public function approveProject($slug) 41 | { 42 | return $this->project->approve($slug); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/Http/Controllers/API/ProjectsController.php: -------------------------------------------------------------------------------- 1 | project = $project; 21 | } 22 | 23 | /** 24 | * Display list of projects 25 | * 26 | * @return Response 27 | */ 28 | public function index() 29 | { 30 | return $this->project->get(); 31 | } 32 | 33 | /** 34 | * Store project to the database 35 | * 36 | * @param Request $request 37 | * @return Response 38 | */ 39 | public function store(Request $request) 40 | { 41 | $this->validate($request, [ 42 | 'title' => 'required|unique:projects,title', 43 | 'url' => 'url', 44 | 'repo_url' => 'required|url|unique:projects,repo_url', 45 | 'short' => 'required', 46 | 'description' => 'required' 47 | ]); 48 | 49 | $project = [ 50 | 'title' => $request->input('title'), 51 | 'slug' => str_slug($request->input('title')), 52 | 'project_url' => $request->input('url'), 53 | 'repo_url' => $request->input('repo_url'), 54 | 'short' => $request->input('short'), 55 | 'description' => $request->input('description') 56 | ]; 57 | 58 | $this->project->store($project); 59 | 60 | return back()->with('status', 'Your submission has been made! Please give us some time to review your submission.'); 61 | } 62 | 63 | /** 64 | * Show a specified project 65 | * 66 | * @param Project $slug 67 | * @return Response 68 | */ 69 | // public function show($slug) 70 | // { 71 | // $project = $this->project->show($slug); 72 | 73 | // return view('projects.show', compact('project')); 74 | // } 75 | } 76 | -------------------------------------------------------------------------------- /app/Http/Controllers/AdminProjectsController.php: -------------------------------------------------------------------------------- 1 | middleware(['auth', 'admin']); 26 | 27 | $this->project = $project; 28 | } 29 | 30 | /** 31 | * Display list of projects 32 | * 33 | * @return Response 34 | */ 35 | public function index() 36 | { 37 | $projects = $this->project->getAll(); 38 | 39 | return view('dashboard.projects.index', compact('projects')); 40 | } 41 | 42 | /** 43 | * Show form for editing a particular project 44 | * 45 | * @param string $slug 46 | * @return Resposne 47 | */ 48 | public function edit($slug) 49 | { 50 | $project = $this->project->getBySlug($slug); 51 | 52 | return view('dashboard.projects.edit', compact('project')); 53 | } 54 | 55 | /** 56 | * Update/approve a particular project 57 | * 58 | * @param string $slug 59 | * @param Request $request 60 | * @return Response 61 | */ 62 | public function update($slug, Request $request) 63 | { 64 | $project = $this->project->getBySlug($slug); 65 | 66 | $this->validate($request, [ 67 | 'title' => [ 68 | 'required', 69 | Rule::unique('projects')->ignore($project->id), 70 | ], 71 | 'repo_url' => [ 72 | 'required', 73 | 'url', 74 | Rule::unique('projects')->ignore($project->id), 75 | ], 76 | 'short' => 'required|max:140', 77 | 'description' => 'required' 78 | ]); 79 | 80 | $project = [ 81 | 'title' => $request->title, 82 | 'slug' => str_slug($request->title), 83 | 'project_url' => $request->url, 84 | 'repo_url' => $request->repo_url, 85 | 'short' => $request->short, 86 | 'description' => $request->description, 87 | ]; 88 | 89 | $this->project->update($slug, $project); 90 | 91 | return redirect('dashboard')->with("status", "Project Updated!"); 92 | } 93 | 94 | /** 95 | * Approve a particular project 96 | * 97 | * @param integer $id 98 | * @return Response 99 | */ 100 | public function approveProject($id) 101 | { 102 | $project = $this->project->findById($id); 103 | 104 | $project->status = 1; 105 | $project->save(); 106 | 107 | // Tweet about the project 108 | $this->tweetProject($project); 109 | 110 | return back()->with("status", "Project Approved!"); 111 | } 112 | 113 | /** 114 | * Delete a specified project 115 | * 116 | * @param integer $project 117 | * @return 118 | */ 119 | public function destroy($project) 120 | { 121 | $this->project->delete($project); 122 | 123 | return back()->with("status", "Project Deleted!"); 124 | } 125 | 126 | /** 127 | * Tweet about project 128 | * 129 | * @param Project $project 130 | * @return void 131 | */ 132 | protected function tweetProject($project) 133 | { 134 | $status = $project->title . ' - ' . $project->short . ' ' . $project->repo_url; 135 | 136 | // Build tweet 137 | $tweet = [ 138 | 'status' => $status, 139 | 'format' => 'json' 140 | ]; 141 | 142 | Twitter::postTweet($tweet); 143 | } 144 | } 145 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest', ['except' => 'logout']); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 40 | } 41 | 42 | /** 43 | * Get a validator for an incoming registration request. 44 | * 45 | * @param array $data 46 | * @return \Illuminate\Contracts\Validation\Validator 47 | */ 48 | protected function validator(array $data) 49 | { 50 | return Validator::make($data, [ 51 | 'name' => 'required|max:255', 52 | 'email' => 'required|email|max:255|unique:users', 53 | 'password' => 'required|min:6|confirmed', 54 | ]); 55 | } 56 | 57 | /** 58 | * Create a new user instance after a valid registration. 59 | * 60 | * @param array $data 61 | * @return User 62 | */ 63 | protected function create(array $data) 64 | { 65 | return User::create([ 66 | 'name' => $data['name'], 67 | 'email' => $data['email'], 68 | 'password' => bcrypt($data['password']), 69 | ]); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | github = $github; 29 | $this->project = $project; 30 | } 31 | 32 | /** 33 | * Display list of projects 34 | * 35 | * @return Response 36 | */ 37 | public function index() 38 | { 39 | $projects = Project::approved()->latest()->paginate(15); 40 | 41 | return view('projects.index', compact('projects')); 42 | } 43 | 44 | /** 45 | * Display form to submit project 46 | * 47 | * @return Response 48 | */ 49 | public function create() 50 | { 51 | return view('projects.create'); 52 | } 53 | 54 | /** 55 | * Store project to the database 56 | * 57 | * @param Request $request 58 | * @return Response 59 | */ 60 | public function store(Request $request) 61 | { 62 | $this->validate($request, [ 63 | 'title' => 'required|unique:projects,title', 64 | 'repo_url' => 'required|url|unique:projects,repo_url', 65 | 'short' => 'required|max:140', 66 | 'description' => 'required' 67 | ]); 68 | 69 | $project = [ 70 | 'title' => $request->input('title'), 71 | 'slug' => str_slug($request->input('title')), 72 | 'project_url' => $request->input('url'), 73 | 'repo_url' => $request->input('repo_url'), 74 | 'short' => $request->input('short'), 75 | 'description' => $request->input('description') 76 | ]; 77 | 78 | $this->project->store($project); 79 | 80 | return back()->with( 81 | 'status', 82 | 'Your submission has been made! Please give us some time to review your submission.' 83 | ); 84 | } 85 | 86 | /** 87 | * Show a specified project 88 | * 89 | * @param Project $slug 90 | * @return Response 91 | */ 92 | public function show($slug) 93 | { 94 | $project = $this->project->show($slug); 95 | 96 | $repoArray = explode('/', $project->repo_url); 97 | 98 | $username = $repoArray[3]; 99 | $repo = $repoArray[4]; 100 | 101 | $repoStats = $this->github->repo()->show($username, $repo); 102 | 103 | return view('projects.show', compact('project', 'repoStats', 'username', 'repo')); 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 30 | \App\Http\Middleware\EncryptCookies::class, 31 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 32 | \Illuminate\Session\Middleware\StartSession::class, 33 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 34 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 35 | \App\Http\Middleware\VerifyCsrfToken::class, 36 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 37 | ], 38 | 39 | 'api' => [ 40 | 'throttle:60,1', 41 | 'bindings', 42 | ], 43 | ]; 44 | 45 | /** 46 | * The application's route middleware. 47 | * 48 | * These middleware may be assigned to groups or used individually. 49 | * 50 | * @var array 51 | */ 52 | protected $routeMiddleware = [ 53 | 'auth' => \Illuminate\Auth\Middleware\Authenticate::class, 54 | 'admin' => \App\Http\Middleware\AdminMiddleware::class, 55 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 56 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 57 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 58 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 59 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 60 | ]; 61 | } 62 | -------------------------------------------------------------------------------- /app/Http/Middleware/AdminMiddleware.php: -------------------------------------------------------------------------------- 1 | is_admin !== 1) { 20 | return redirect('/'); 21 | } 22 | 23 | return $next($request); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | guest()) { 21 | if ($request->ajax() || $request->wantsJson()) { 22 | return response('Unauthorized.', 401); 23 | } 24 | 25 | return redirect()->guest('login'); 26 | } 27 | 28 | return $next($request); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | where('status', 1); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | composer('*', function ($view) { 21 | $view->with('projectsCount', Project::where('status', 1)->count()); 22 | }); 23 | } 24 | 25 | /** 26 | * Register any application services. 27 | * 28 | * @return void 29 | */ 30 | public function register() 31 | { 32 | // 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'App\Listeners\EventListener', 18 | ], 19 | ]; 20 | 21 | /** 22 | * Register any events for your application. 23 | * 24 | * @return void 25 | */ 26 | public function boot() 27 | { 28 | parent::boot(); 29 | 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 39 | 40 | $this->mapWebRoutes(); 41 | 42 | // 43 | } 44 | 45 | /** 46 | * Define the "web" routes for the application. 47 | * 48 | * These routes all receive session state, CSRF protection, etc. 49 | * 50 | * @return void 51 | */ 52 | protected function mapWebRoutes() 53 | { 54 | Route::middleware('web') 55 | ->namespace($this->namespace) 56 | ->group(base_path('routes/web.php')); 57 | } 58 | 59 | /** 60 | * Define the "api" routes for the application. 61 | * 62 | * These routes are typically stateless. 63 | * 64 | * @return void 65 | */ 66 | protected function mapApiRoutes() 67 | { 68 | Route::prefix('api') 69 | ->middleware('api') 70 | ->namespace($this->namespace) 71 | ->group(base_path('routes/api.php')); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /app/Repositories/ProjectRepository.php: -------------------------------------------------------------------------------- 1 | paginate(25); 15 | } 16 | 17 | /** 18 | * get projects in descending order. 19 | */ 20 | public function get() 21 | { 22 | return Project::where('status', 1) 23 | ->orderBy('id', 'desc') 24 | ->paginate(15); 25 | } 26 | 27 | /** 28 | * Find a project by it slug 29 | * 30 | * @param string $slug 31 | * @return void 32 | */ 33 | public function getBySlug($slug) 34 | { 35 | return Project::where('slug', $slug)->firstOrFail(); 36 | } 37 | 38 | /** 39 | * Find a project by it primary key 40 | * 41 | * @param integer $id 42 | * @return Collection 43 | */ 44 | public function findById($id) 45 | { 46 | return Project::findOrFail($id); 47 | } 48 | 49 | /** 50 | * Create a new project. 51 | * 52 | * @param Project $project 53 | */ 54 | public function store($project) 55 | { 56 | return Project::create($project); 57 | } 58 | 59 | /** 60 | * Update a project. 61 | * 62 | * @param Project $project 63 | */ 64 | public function update($slug, $project) 65 | { 66 | return Project::where('slug', $slug) 67 | ->update($project); 68 | } 69 | 70 | /** 71 | * Show a specified project. 72 | * 73 | * @param Project $slug 74 | */ 75 | public function show($slug) 76 | { 77 | return Project::where('slug', $slug)->firstOrFail(); 78 | } 79 | 80 | /** 81 | * Approve a specified project 82 | * 83 | * @param integer $id 84 | * @return Collection 85 | */ 86 | public function approve($id) 87 | { 88 | return Project::where('id', $id) 89 | ->update(['status' => 1]); 90 | } 91 | 92 | /** 93 | * Delete a specified project 94 | * 95 | * @param Project $project 96 | * @return 97 | */ 98 | public function delete($project) 99 | { 100 | return Project::destroy($project); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | 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); 52 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\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; 56 | -------------------------------------------------------------------------------- /bootstrap/autoload.php: -------------------------------------------------------------------------------- 1 | =7.1.3", 9 | "algolia/algoliasearch-client-php": "^1.25.1", 10 | "andreasindal/laravel-markdown": "3.0", 11 | "graham-campbell/github": "^7.3.0", 12 | "laravel/framework": "5.6.*", 13 | "laravel/scout": "^4.0", 14 | "laravel/tinker": "~1.0.6", 15 | "php-http/guzzle6-adapter": "^1.1", 16 | "thujohn/twitter": "^2.2.5" 17 | }, 18 | "require-dev": { 19 | "fzaninotto/faker": "~1.4", 20 | "mockery/mockery": "0.9.*", 21 | "phpunit/phpunit": "~7.0" 22 | }, 23 | "autoload": { 24 | "classmap": [ 25 | "database" 26 | ], 27 | "psr-4": { 28 | "App\\": "app/" 29 | } 30 | }, 31 | "autoload-dev": { 32 | "psr-4": { 33 | "Tests\\": "tests/" 34 | } 35 | }, 36 | "scripts": { 37 | "post-root-package-install": [ 38 | "php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 39 | ], 40 | "post-create-project-cmd": [ 41 | "php artisan key:generate" 42 | ], 43 | "post-install-cmd": [ 44 | "Illuminate\\Foundation\\ComposerScripts::postInstall" 45 | ], 46 | "post-update-cmd": [ 47 | "Illuminate\\Foundation\\ComposerScripts::postUpdate" 48 | ] 49 | }, 50 | "config": { 51 | "preferred-install": "dist", 52 | "sort-packages": true 53 | } 54 | } -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- 1 | 'Open Laravel', 16 | 17 | /* 18 | |-------------------------------------------------------------------------- 19 | | Application Environment 20 | |-------------------------------------------------------------------------- 21 | | 22 | | This value determines the "environment" your application is currently 23 | | running in. This may determine how you prefer to configure various 24 | | services your application utilizes. Set this in your ".env" file. 25 | | 26 | */ 27 | 28 | 'env' => env('APP_ENV', 'production'), 29 | 30 | /* 31 | |-------------------------------------------------------------------------- 32 | | Application Debug Mode 33 | |-------------------------------------------------------------------------- 34 | | 35 | | When your application is in debug mode, detailed error messages with 36 | | stack traces will be shown on every error that occurs within your 37 | | application. If disabled, a simple generic error page is shown. 38 | | 39 | */ 40 | 41 | 'debug' => env('APP_DEBUG', false), 42 | 43 | /* 44 | |-------------------------------------------------------------------------- 45 | | Application URL 46 | |-------------------------------------------------------------------------- 47 | | 48 | | This URL is used by the console to properly generate URLs when using 49 | | the Artisan command line tool. You should set this to the root of 50 | | your application so that it is used when running Artisan tasks. 51 | | 52 | */ 53 | 54 | 'url' => env('APP_URL', 'http://localhost'), 55 | 56 | /* 57 | |-------------------------------------------------------------------------- 58 | | Application Timezone 59 | |-------------------------------------------------------------------------- 60 | | 61 | | Here you may specify the default timezone for your application, which 62 | | will be used by the PHP date and date-time functions. We have gone 63 | | ahead and set this to a sensible default for you out of the box. 64 | | 65 | */ 66 | 67 | 'timezone' => 'UTC', 68 | 69 | /* 70 | |-------------------------------------------------------------------------- 71 | | Application Locale Configuration 72 | |-------------------------------------------------------------------------- 73 | | 74 | | The application locale determines the default locale that will be used 75 | | by the translation service provider. You are free to set this value 76 | | to any of the locales which will be supported by the application. 77 | | 78 | */ 79 | 80 | 'locale' => 'en', 81 | 82 | /* 83 | |-------------------------------------------------------------------------- 84 | | Application Fallback Locale 85 | |-------------------------------------------------------------------------- 86 | | 87 | | The fallback locale determines the locale to use when the current one 88 | | is not available. You may change the value to correspond to any of 89 | | the language folders that are provided through your application. 90 | | 91 | */ 92 | 93 | 'fallback_locale' => 'en', 94 | 95 | /* 96 | |-------------------------------------------------------------------------- 97 | | Encryption Key 98 | |-------------------------------------------------------------------------- 99 | | 100 | | This key is used by the Illuminate encrypter service and should be set 101 | | to a random, 32 character string, otherwise these encrypted strings 102 | | will not be safe. Please do this before deploying an application! 103 | | 104 | */ 105 | 106 | 'key' => env('APP_KEY'), 107 | 108 | 'cipher' => 'AES-256-CBC', 109 | 110 | /* 111 | |-------------------------------------------------------------------------- 112 | | Logging Configuration 113 | |-------------------------------------------------------------------------- 114 | | 115 | | Here you may configure the log settings for your application. Out of 116 | | the box, Laravel uses the Monolog PHP logging library. This gives 117 | | you a variety of powerful log handlers / formatters to utilize. 118 | | 119 | | Available Settings: "single", "daily", "syslog", "errorlog" 120 | | 121 | */ 122 | 123 | 'log' => env('APP_LOG', 'single'), 124 | 125 | 'log_level' => env('APP_LOG_LEVEL', 'debug'), 126 | 127 | /* 128 | |-------------------------------------------------------------------------- 129 | | Autoloaded Service Providers 130 | |-------------------------------------------------------------------------- 131 | | 132 | | The service providers listed here will be automatically loaded on the 133 | | request to your application. Feel free to add your own services to 134 | | this array to grant expanded functionality to your applications. 135 | | 136 | */ 137 | 138 | 'providers' => [ 139 | 140 | /* 141 | * Laravel Framework Service Providers... 142 | */ 143 | Illuminate\Auth\AuthServiceProvider::class, 144 | Illuminate\Broadcasting\BroadcastServiceProvider::class, 145 | Illuminate\Bus\BusServiceProvider::class, 146 | Illuminate\Cache\CacheServiceProvider::class, 147 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, 148 | Illuminate\Cookie\CookieServiceProvider::class, 149 | Illuminate\Database\DatabaseServiceProvider::class, 150 | Illuminate\Encryption\EncryptionServiceProvider::class, 151 | Illuminate\Filesystem\FilesystemServiceProvider::class, 152 | Illuminate\Foundation\Providers\FoundationServiceProvider::class, 153 | Illuminate\Hashing\HashServiceProvider::class, 154 | Illuminate\Mail\MailServiceProvider::class, 155 | Illuminate\Notifications\NotificationServiceProvider::class, 156 | Illuminate\Pagination\PaginationServiceProvider::class, 157 | Illuminate\Pipeline\PipelineServiceProvider::class, 158 | Illuminate\Queue\QueueServiceProvider::class, 159 | Illuminate\Redis\RedisServiceProvider::class, 160 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, 161 | Illuminate\Session\SessionServiceProvider::class, 162 | Illuminate\Translation\TranslationServiceProvider::class, 163 | Illuminate\Validation\ValidationServiceProvider::class, 164 | Illuminate\View\ViewServiceProvider::class, 165 | 166 | /* 167 | * Package Service Providers... 168 | */ 169 | Laravel\Tinker\TinkerServiceProvider::class, 170 | 171 | /* 172 | * Application Service Providers... 173 | */ 174 | App\Providers\AppServiceProvider::class, 175 | App\Providers\AuthServiceProvider::class, 176 | // App\Providers\BroadcastServiceProvider::class, 177 | App\Providers\EventServiceProvider::class, 178 | App\Providers\RouteServiceProvider::class, 179 | GrahamCampbell\GitHub\GitHubServiceProvider::class, 180 | Indal\Markdown\MarkdownServiceProvider::class, 181 | Laravel\Scout\ScoutServiceProvider::class, 182 | Thujohn\Twitter\TwitterServiceProvider::class, 183 | 184 | ], 185 | 186 | /* 187 | |-------------------------------------------------------------------------- 188 | | Class Aliases 189 | |-------------------------------------------------------------------------- 190 | | 191 | | This array of class aliases will be registered when this application 192 | | is started. However, feel free to register as many as you wish as 193 | | the aliases are "lazy" loaded so they don't hinder performance. 194 | | 195 | */ 196 | 197 | 'aliases' => [ 198 | 199 | 'App' => Illuminate\Support\Facades\App::class, 200 | 'Artisan' => Illuminate\Support\Facades\Artisan::class, 201 | 'Auth' => Illuminate\Support\Facades\Auth::class, 202 | 'Blade' => Illuminate\Support\Facades\Blade::class, 203 | 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, 204 | 'Bus' => Illuminate\Support\Facades\Bus::class, 205 | 'Cache' => Illuminate\Support\Facades\Cache::class, 206 | 'Config' => Illuminate\Support\Facades\Config::class, 207 | 'Cookie' => Illuminate\Support\Facades\Cookie::class, 208 | 'Crypt' => Illuminate\Support\Facades\Crypt::class, 209 | 'DB' => Illuminate\Support\Facades\DB::class, 210 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class, 211 | 'Event' => Illuminate\Support\Facades\Event::class, 212 | 'File' => Illuminate\Support\Facades\File::class, 213 | 'Gate' => Illuminate\Support\Facades\Gate::class, 214 | 'Hash' => Illuminate\Support\Facades\Hash::class, 215 | 'Lang' => Illuminate\Support\Facades\Lang::class, 216 | 'Log' => Illuminate\Support\Facades\Log::class, 217 | 'Mail' => Illuminate\Support\Facades\Mail::class, 218 | 'Notification' => Illuminate\Support\Facades\Notification::class, 219 | 'Password' => Illuminate\Support\Facades\Password::class, 220 | 'Queue' => Illuminate\Support\Facades\Queue::class, 221 | 'Redirect' => Illuminate\Support\Facades\Redirect::class, 222 | 'Redis' => Illuminate\Support\Facades\Redis::class, 223 | 'Request' => Illuminate\Support\Facades\Request::class, 224 | 'Response' => Illuminate\Support\Facades\Response::class, 225 | 'Route' => Illuminate\Support\Facades\Route::class, 226 | 'Schema' => Illuminate\Support\Facades\Schema::class, 227 | 'Session' => Illuminate\Support\Facades\Session::class, 228 | 'Storage' => Illuminate\Support\Facades\Storage::class, 229 | 'URL' => Illuminate\Support\Facades\URL::class, 230 | 'Validator' => Illuminate\Support\Facades\Validator::class, 231 | 'View' => Illuminate\Support\Facades\View::class, 232 | 'GitHub' => GrahamCampbell\GitHub\Facades\GitHub::class, 233 | 'Markdown' => Indal\Markdown\Facade::class, 234 | 'Twitter' => Thujohn\Twitter\Facades\Twitter::class, 235 | 236 | ], 237 | 238 | ]; 239 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | ], 48 | ], 49 | 50 | /* 51 | |-------------------------------------------------------------------------- 52 | | User Providers 53 | |-------------------------------------------------------------------------- 54 | | 55 | | All authentication drivers have a user provider. This defines how the 56 | | users are actually retrieved out of your database or other storage 57 | | mechanisms used by this application to persist your user's data. 58 | | 59 | | If you have multiple user tables or models you may configure multiple 60 | | sources which represent each model / table. These sources may then 61 | | be assigned to any extra authentication guards you have defined. 62 | | 63 | | Supported: "database", "eloquent" 64 | | 65 | */ 66 | 67 | 'providers' => [ 68 | 'users' => [ 69 | 'driver' => 'eloquent', 70 | 'model' => App\User::class, 71 | ], 72 | 73 | // 'users' => [ 74 | // 'driver' => 'database', 75 | // 'table' => 'users', 76 | // ], 77 | ], 78 | 79 | /* 80 | |-------------------------------------------------------------------------- 81 | | Resetting Passwords 82 | |-------------------------------------------------------------------------- 83 | | 84 | | You may specify multiple password reset configurations if you have more 85 | | than one user table or model in the application and you want to have 86 | | separate password reset settings based on the specific user types. 87 | | 88 | | The expire time is the number of minutes that the reset token should be 89 | | considered valid. This security feature keeps tokens short-lived so 90 | | they have less time to be guessed. You may change this as needed. 91 | | 92 | */ 93 | 94 | 'passwords' => [ 95 | 'users' => [ 96 | 'provider' => 'users', 97 | 'table' => 'password_resets', 98 | 'expire' => 60, 99 | ], 100 | ], 101 | 102 | ]; 103 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | // 40 | ], 41 | ], 42 | 43 | 'redis' => [ 44 | 'driver' => 'redis', 45 | 'connection' => 'default', 46 | ], 47 | 48 | 'log' => [ 49 | 'driver' => 'log', 50 | ], 51 | 52 | 'null' => [ 53 | 'driver' => 'null', 54 | ], 55 | 56 | ], 57 | 58 | ]; 59 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | */ 30 | 31 | 'stores' => [ 32 | 33 | 'apc' => [ 34 | 'driver' => 'apc', 35 | ], 36 | 37 | 'array' => [ 38 | 'driver' => 'array', 39 | ], 40 | 41 | 'database' => [ 42 | 'driver' => 'database', 43 | 'table' => 'cache', 44 | 'connection' => null, 45 | ], 46 | 47 | 'file' => [ 48 | 'driver' => 'file', 49 | 'path' => storage_path('framework/cache/data'), 50 | ], 51 | 52 | 'memcached' => [ 53 | 'driver' => 'memcached', 54 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 55 | 'sasl' => [ 56 | env('MEMCACHED_USERNAME'), 57 | env('MEMCACHED_PASSWORD'), 58 | ], 59 | 'options' => [ 60 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 61 | ], 62 | 'servers' => [ 63 | [ 64 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 65 | 'port' => env('MEMCACHED_PORT', 11211), 66 | 'weight' => 100, 67 | ], 68 | ], 69 | ], 70 | 71 | 'redis' => [ 72 | 'driver' => 'redis', 73 | 'connection' => 'default', 74 | ], 75 | 76 | ], 77 | 78 | /* 79 | |-------------------------------------------------------------------------- 80 | | Cache Key Prefix 81 | |-------------------------------------------------------------------------- 82 | | 83 | | When utilizing a RAM based store such as APC or Memcached, there might 84 | | be other applications utilizing the same cache. So, we'll specify a 85 | | value to get prefixed to all our keys so we can avoid collisions. 86 | | 87 | */ 88 | 89 | 'prefix' => 'laravel', 90 | 91 | ]; 92 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 23 | 24 | /* 25 | |-------------------------------------------------------------------------- 26 | | Database Connections 27 | |-------------------------------------------------------------------------- 28 | | 29 | | Here are each of the database connections setup for your application. 30 | | Of course, examples of configuring each database platform that is 31 | | supported by Laravel is shown below to make development simple. 32 | | 33 | | 34 | | All database work in Laravel is done through the PHP PDO facilities 35 | | so make sure you have the driver for your particular database of 36 | | choice installed on your machine before you begin development. 37 | | 38 | */ 39 | 40 | 'connections' => [ 41 | 'sqlite' => [ 42 | 'driver' => 'sqlite', 43 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 44 | 'prefix' => '', 45 | ], 46 | 47 | 'mysql' => [ 48 | 'driver' => 'mysql', 49 | 'host' => env('DB_HOST', '127.0.0.1'), 50 | 'host' => env('DB_HOST', $host), 51 | 'database' => env('DB_DATABASE', $database), 52 | 'username' => env('DB_USERNAME', $username), 53 | 'password' => env('DB_PASSWORD', $password), 54 | 'charset' => 'utf8mb4', 55 | 'collation' => 'utf8mb4_unicode_ci', 56 | 'prefix' => '', 57 | 'strict' => true, 58 | 'engine' => null, 59 | ], 60 | 61 | 'pgsql' => [ 62 | 'driver' => 'pgsql', 63 | 'host' => env('DB_HOST', '127.0.0.1'), 64 | 'port' => env('DB_PORT', '5432'), 65 | 'database' => env('DB_DATABASE', 'forge'), 66 | 'username' => env('DB_USERNAME', 'forge'), 67 | 'password' => env('DB_PASSWORD', ''), 68 | 'charset' => 'utf8', 69 | 'prefix' => '', 70 | 'schema' => 'public', 71 | 'sslmode' => 'prefer', 72 | ], 73 | ], 74 | 75 | /* 76 | |-------------------------------------------------------------------------- 77 | | Migration Repository Table 78 | |-------------------------------------------------------------------------- 79 | | 80 | | This table keeps track of all the migrations that have already run for 81 | | your application. Using this information, we can determine which of 82 | | the migrations on disk haven't actually been run in the database. 83 | | 84 | */ 85 | 86 | 'migrations' => 'migrations', 87 | 88 | /* 89 | |-------------------------------------------------------------------------- 90 | | Redis Databases 91 | |-------------------------------------------------------------------------- 92 | | 93 | | Redis is an open source, fast, and advanced key-value store that also 94 | | provides a richer set of commands than a typical key-value systems 95 | | such as APC or Memcached. Laravel makes it easy to dig right in. 96 | | 97 | */ 98 | 99 | 'redis' => [ 100 | 'client' => 'predis', 101 | 102 | 'default' => [ 103 | 'host' => env('REDIS_HOST', '127.0.0.1'), 104 | 'password' => env('REDIS_PASSWORD', null), 105 | 'port' => env('REDIS_PORT', 6379), 106 | 'database' => 0, 107 | ], 108 | ], 109 | ]; 110 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | 'local', 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => 's3', 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "s3", "rackspace" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_KEY'), 61 | 'secret' => env('AWS_SECRET'), 62 | 'region' => env('AWS_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | ], 65 | 66 | ], 67 | 68 | ]; 69 | -------------------------------------------------------------------------------- /config/github.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | return [ 13 | 14 | /* 15 | |-------------------------------------------------------------------------- 16 | | Default Connection Name 17 | |-------------------------------------------------------------------------- 18 | | 19 | | Here you may specify which of the connections below you wish to use as 20 | | your default connection for all work. Of course, you may use many 21 | | connections at once using the manager class. 22 | | 23 | */ 24 | 25 | 'default' => 'main', 26 | 27 | /* 28 | |-------------------------------------------------------------------------- 29 | | GitHub Connections 30 | |-------------------------------------------------------------------------- 31 | | 32 | | Here are each of the connections setup for your application. Example 33 | | configuration has been included, but you may add as many connections as 34 | | you would like. Note that the 3 supported authentication methods are: 35 | | "application", "password", and "token". 36 | | 37 | */ 38 | 39 | 'connections' => [ 40 | 41 | 'main' => [ 42 | 'token' => env('GITHUB_TOKEN', 'token'), 43 | 'method' => 'token', 44 | 'cache' => true, 45 | // 'backoff' => false, 46 | // 'version' => 'v3', 47 | // 'enterprise' => false, 48 | ], 49 | 50 | 'alternative' => [ 51 | 'clientId' => 'your-client-id', 52 | 'clientSecret' => 'your-client-secret', 53 | 'method' => 'application', 54 | // 'backoff' => false, 55 | // 'cache' => false, 56 | // 'version' => 'v3', 57 | // 'enterprise' => false, 58 | ], 59 | 60 | 'other' => [ 61 | 'username' => 'your-username', 62 | 'password' => 'your-password', 63 | 'method' => 'password', 64 | // 'backoff' => false, 65 | // 'cache' => false, 66 | // 'version' => 'v3', 67 | // 'enterprise' => false, 68 | ], 69 | 70 | ], 71 | 72 | ]; 73 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_DRIVER', 'smtp'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | SMTP Host Address 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may provide the host address of the SMTP server used by your 27 | | applications. A default option is provided that is compatible with 28 | | the Mailgun mail service which will provide reliable deliveries. 29 | | 30 | */ 31 | 32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 33 | 34 | /* 35 | |-------------------------------------------------------------------------- 36 | | SMTP Host Port 37 | |-------------------------------------------------------------------------- 38 | | 39 | | This is the SMTP port used by your application to deliver e-mails to 40 | | users of the application. Like the host we have set this value to 41 | | stay compatible with the Mailgun e-mail application by default. 42 | | 43 | */ 44 | 45 | 'port' => env('MAIL_PORT', 587), 46 | 47 | /* 48 | |-------------------------------------------------------------------------- 49 | | Global "From" Address 50 | |-------------------------------------------------------------------------- 51 | | 52 | | You may wish for all e-mails sent by your application to be sent from 53 | | the same address. Here, you may specify a name and address that is 54 | | used globally for all e-mails that are sent by your application. 55 | | 56 | */ 57 | 58 | 'from' => [ 59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 60 | 'name' => env('MAIL_FROM_NAME', 'Example'), 61 | ], 62 | 63 | /* 64 | |-------------------------------------------------------------------------- 65 | | E-Mail Encryption Protocol 66 | |-------------------------------------------------------------------------- 67 | | 68 | | Here you may specify the encryption protocol that should be used when 69 | | the application send e-mail messages. A sensible default using the 70 | | transport layer security protocol should provide great security. 71 | | 72 | */ 73 | 74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | SMTP Server Username 79 | |-------------------------------------------------------------------------- 80 | | 81 | | If your SMTP server requires a username for authentication, you should 82 | | set it here. This will get used to authenticate with your server on 83 | | connection. You may also set the "password" value below this one. 84 | | 85 | */ 86 | 87 | 'username' => env('MAIL_USERNAME'), 88 | 89 | 'password' => env('MAIL_PASSWORD'), 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Markdown Mail Settings 94 | |-------------------------------------------------------------------------- 95 | | 96 | | If you are using Markdown based email rendering, you may configure your 97 | | theme and component paths here, allowing you to customize the design 98 | | of the emails. Or, you may simply stick with the Laravel defaults! 99 | | 100 | */ 101 | 102 | 'markdown' => [ 103 | 'theme' => 'default', 104 | 105 | 'paths' => [ 106 | resource_path('views/vendor/mail'), 107 | ], 108 | ], 109 | 110 | ]; 111 | -------------------------------------------------------------------------------- /config/markdown.php: -------------------------------------------------------------------------------- 1 | true, 16 | 17 | /* 18 | |-------------------------------------------------------------------------- 19 | | Automatically link URL:s 20 | |-------------------------------------------------------------------------- 21 | | 22 | | This option controls the automatic anchor inserting on URL:s in your 23 | | markdown. If this option is true, all websites in your markdown 24 | | will automatically be turned into anchor tags in your output. 25 | | 26 | */ 27 | 28 | 'urls' => true, 29 | 30 | ]; 31 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_DRIVER', 'sync'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Queue Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may configure the connection information for each server that 26 | | is used by your application. A default configuration has been added 27 | | for each back-end shipped with Laravel. You are free to add more. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | ], 50 | 51 | 'sqs' => [ 52 | 'driver' => 'sqs', 53 | 'key' => 'your-public-key', 54 | 'secret' => 'your-secret-key', 55 | 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id', 56 | 'queue' => 'your-queue-name', 57 | 'region' => 'us-east-1', 58 | ], 59 | 60 | 'redis' => [ 61 | 'driver' => 'redis', 62 | 'connection' => 'default', 63 | 'queue' => 'default', 64 | 'retry_after' => 90, 65 | ], 66 | 67 | ], 68 | 69 | /* 70 | |-------------------------------------------------------------------------- 71 | | Failed Queue Jobs 72 | |-------------------------------------------------------------------------- 73 | | 74 | | These options configure the behavior of failed queue job logging so you 75 | | can control which database and table are used to store the jobs that 76 | | have failed. You may change them to any database / table you wish. 77 | | 78 | */ 79 | 80 | 'failed' => [ 81 | 'database' => env('DB_CONNECTION', 'mysql'), 82 | 'table' => 'failed_jobs', 83 | ], 84 | 85 | ]; 86 | -------------------------------------------------------------------------------- /config/scout.php: -------------------------------------------------------------------------------- 1 | env('SCOUT_DRIVER', 'algolia'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Index Prefix 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify a prefix that will be applied to all search index 26 | | names used by Scout. This prefix may be useful if you have multiple 27 | | "tenants" or applications sharing the same search infrastructure. 28 | | 29 | */ 30 | 31 | 'prefix' => env('SCOUT_PREFIX', ''), 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Queue Data Syncing 36 | |-------------------------------------------------------------------------- 37 | | 38 | | This option allows you to control if the operations that sync your data 39 | | with your search engines are queued. When this is set to "true" then 40 | | all automatic data syncing will get queued for better performance. 41 | | 42 | */ 43 | 44 | 'queue' => false, 45 | 46 | /* 47 | |-------------------------------------------------------------------------- 48 | | Algolia Configuration 49 | |-------------------------------------------------------------------------- 50 | | 51 | | Here you may configure your Algolia settings. Algolia is a cloud hosted 52 | | search engine which works great with Scout out of the box. Just plug 53 | | in your application ID and admin API key to get started searching. 54 | | 55 | */ 56 | 57 | 'algolia' => [ 58 | 'id' => env('ALGOLIA_APP_ID', ''), 59 | 'secret' => env('ALGOLIA_SECRET', ''), 60 | 'key' => env('ALGOLIA_KEY', ''), 61 | ], 62 | 63 | ]; 64 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | ], 21 | 22 | 'ses' => [ 23 | 'key' => env('SES_KEY'), 24 | 'secret' => env('SES_SECRET'), 25 | 'region' => 'us-east-1', 26 | ], 27 | 28 | 'sparkpost' => [ 29 | 'secret' => env('SPARKPOST_SECRET'), 30 | ], 31 | 32 | 'stripe' => [ 33 | 'model' => App\User::class, 34 | 'key' => env('STRIPE_KEY'), 35 | 'secret' => env('STRIPE_SECRET'), 36 | ], 37 | 38 | ]; 39 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | 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 Cache Store 91 | |-------------------------------------------------------------------------- 92 | | 93 | | When using the "apc" or "memcached" session drivers, you may specify a 94 | | cache store that should be used for these sessions. This value must 95 | | correspond with one of the application's configured cache stores. 96 | | 97 | */ 98 | 99 | 'store' => null, 100 | 101 | /* 102 | |-------------------------------------------------------------------------- 103 | | Session Sweeping Lottery 104 | |-------------------------------------------------------------------------- 105 | | 106 | | Some session drivers must manually sweep their storage location to get 107 | | rid of old sessions from storage. Here are the chances that it will 108 | | happen on a given request. By default, the odds are 2 out of 100. 109 | | 110 | */ 111 | 112 | 'lottery' => [2, 100], 113 | 114 | /* 115 | |-------------------------------------------------------------------------- 116 | | Session Cookie Name 117 | |-------------------------------------------------------------------------- 118 | | 119 | | Here you may change the name of the cookie used to identify a session 120 | | instance by ID. The name specified here will get used every time a 121 | | new session cookie is created by the framework for every driver. 122 | | 123 | */ 124 | 125 | 'cookie' => 'laravel_session', 126 | 127 | /* 128 | |-------------------------------------------------------------------------- 129 | | Session Cookie Path 130 | |-------------------------------------------------------------------------- 131 | | 132 | | The session cookie path determines the path for which the cookie will 133 | | be regarded as available. Typically, this will be the root path of 134 | | your application but you are free to change this when necessary. 135 | | 136 | */ 137 | 138 | 'path' => '/', 139 | 140 | /* 141 | |-------------------------------------------------------------------------- 142 | | Session Cookie Domain 143 | |-------------------------------------------------------------------------- 144 | | 145 | | Here you may change the domain of the cookie used to identify a session 146 | | in your application. This will determine which domains the cookie is 147 | | available to in your application. A sensible default has been set. 148 | | 149 | */ 150 | 151 | 'domain' => env('SESSION_DOMAIN', null), 152 | 153 | /* 154 | |-------------------------------------------------------------------------- 155 | | HTTPS Only Cookies 156 | |-------------------------------------------------------------------------- 157 | | 158 | | By setting this option to true, session cookies will only be sent back 159 | | to the server if the browser has a HTTPS connection. This will keep 160 | | the cookie from being sent to you if it can not be done securely. 161 | | 162 | */ 163 | 164 | 'secure' => env('SESSION_SECURE_COOKIE', false), 165 | 166 | /* 167 | |-------------------------------------------------------------------------- 168 | | HTTP Access Only 169 | |-------------------------------------------------------------------------- 170 | | 171 | | Setting this value to true will prevent JavaScript from accessing the 172 | | value of the cookie and the cookie will only be accessible through 173 | | the HTTP protocol. You are free to modify this option if needed. 174 | | 175 | */ 176 | 177 | 'http_only' => true, 178 | 179 | ]; 180 | -------------------------------------------------------------------------------- /config/ttwitter.php: -------------------------------------------------------------------------------- 1 | function_exists('env') ? env('APP_DEBUG', false) : false, 7 | 8 | 'API_URL' => 'api.twitter.com', 9 | 'UPLOAD_URL' => 'upload.twitter.com', 10 | 'API_VERSION' => '1.1', 11 | 'AUTHENTICATE_URL' => 'https://api.twitter.com/oauth/authenticate', 12 | 'AUTHORIZE_URL' => 'https://api.twitter.com/oauth/authorize', 13 | 'ACCESS_TOKEN_URL' => 'https://api.twitter.com/oauth/access_token', 14 | 'REQUEST_TOKEN_URL' => 'https://api.twitter.com/oauth/request_token', 15 | 'USE_SSL' => true, 16 | 17 | 'CONSUMER_KEY' => function_exists('env') ? env('TWITTER_CONSUMER_KEY', '') : '', 18 | 'CONSUMER_SECRET' => function_exists('env') ? env('TWITTER_CONSUMER_SECRET', '') : '', 19 | 'ACCESS_TOKEN' => function_exists('env') ? env('TWITTER_ACCESS_TOKEN', '') : '', 20 | 'ACCESS_TOKEN_SECRET' => function_exists('env') ? env('TWITTER_ACCESS_TOKEN_SECRET', '') : '', 21 | ]; 22 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 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 | ]; 34 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /database/factories/ModelFactory.php: -------------------------------------------------------------------------------- 1 | define(App\Project::class, function (Faker\Generator $faker) { 15 | return [ 16 | 'title' => $faker->sentence, 17 | 'slug' => $faker->slug, 18 | 'project_url'=> $faker->url, 19 | 'repo_url' => $faker->url, 20 | 'short' => $faker->sentence, 21 | 'description' => $faker->paragraph, 22 | ]; 23 | }); 24 | -------------------------------------------------------------------------------- /database/migrations/2016_07_23_122307_create_projects_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 17 | $table->string('title')->unique(); 18 | $table->string('slug'); 19 | $table->string('project_url')->unique()->nullable(); 20 | $table->string('repo_url')->unique(); 21 | $table->string('packagist_url')->nullable(); 22 | $table->text('description'); 23 | $table->boolean('status')->default(0); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::drop('projects'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /database/migrations/2016_08_06_183718_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 17 | $table->string('name'); 18 | $table->string('email')->unique(); 19 | $table->string('password'); 20 | $table->integer('is_admin')->unsigned()->default(0); 21 | $table->rememberToken(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::drop('users'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2016_08_06_184224_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 17 | $table->string('token')->index(); 18 | $table->timestamp('created_at')->nullable(); 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 | } 32 | -------------------------------------------------------------------------------- /database/migrations/2016_08_09_041919_add_short_description_column_to_projects_table.php: -------------------------------------------------------------------------------- 1 | string('short'); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | * 23 | * @return void 24 | */ 25 | public function down() 26 | { 27 | Schema::table('projects', function (Blueprint $table) { 28 | $table->dropColumn('short'); 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git pull origin master 4 | 5 | composer install 6 | php artisan optimize 7 | 8 | #php artisan route:cache 9 | php artisan config:cache 10 | 11 | npm install -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 5 | "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch-poll": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --watch-poll --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 7 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 8 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 9 | }, 10 | "devDependencies": { 11 | "axios": "^0.15.2", 12 | "bulma": "^0.3.1", 13 | "cross-env": "^3.2.3", 14 | "jquery": "^3.1.0", 15 | "laravel-mix": "^0.12.1", 16 | "lodash": "^4.16.2", 17 | "vue": "^2.0.1", 18 | "vue-loader": "10.1.0" 19 | }, 20 | "dependencies": { 21 | "algoliasearch": "^3.22.3", 22 | "autocomplete.js": "^0.25.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Feature 14 | 15 | 16 | 17 | ./tests/Unit 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews 4 | 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 | 17 | # Handle Authorization Header 18 | RewriteCond %{HTTP:Authorization} . 19 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 20 | 21 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ammezie/openlaravel/55afdd372590a1cba5f6dbc47670ffb8e282240f/public/favicon.ico -------------------------------------------------------------------------------- /public/images/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ammezie/openlaravel/55afdd372590a1cba5f6dbc47670ffb8e282240f/public/images/favicon-16x16.png -------------------------------------------------------------------------------- /public/images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ammezie/openlaravel/55afdd372590a1cba5f6dbc47670ffb8e282240f/public/images/favicon-32x32.png -------------------------------------------------------------------------------- /public/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ammezie/openlaravel/55afdd372590a1cba5f6dbc47670ffb8e282240f/public/images/logo.png -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 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); 59 | -------------------------------------------------------------------------------- /public/js/laravel.js: -------------------------------------------------------------------------------- 1 | /* 2 | Exemples : 3 | 4 | - Or, request confirmation in the process - 5 | 6 | */ 7 | 8 | 9 | (function() { 10 | 11 | var laravel = { 12 | initialize: function() { 13 | this.methodLinks = $('a[data-method]'); 14 | this.token = $('a[data-token]'); 15 | this.registerEvents(); 16 | }, 17 | 18 | registerEvents: function() { 19 | this.methodLinks.on('click', this.handleMethod); 20 | }, 21 | 22 | handleMethod: function(e) { 23 | var link = $(this); 24 | var httpMethod = link.data('method').toUpperCase(); 25 | var form; 26 | 27 | // If the data-method attribute is not PUT or DELETE, 28 | // then we don't know what to do. Just ignore. 29 | if ( $.inArray(httpMethod, ['PATCH', 'PUT', 'DELETE']) === - 1 ) { 30 | return; 31 | } 32 | 33 | // Allow user to optionally provide data-confirm="Are you sure?" 34 | if ( link.data('confirm') ) { 35 | if ( ! laravel.verifyConfirm(link) ) { 36 | return false; 37 | } 38 | } 39 | 40 | form = laravel.createForm(link); 41 | form.submit(); 42 | 43 | e.preventDefault(); 44 | }, 45 | 46 | verifyConfirm: function(link) { 47 | return confirm(link.data('confirm')); 48 | }, 49 | 50 | createForm: function(link) { 51 | var form = 52 | $('', { 53 | 'method': 'POST', 54 | 'action': link.attr('href') 55 | }); 56 | 57 | var token = 58 | $('', { 59 | 'type': 'hidden', 60 | 'name': '_token', 61 | 'value': link.data('token') 62 | }); 63 | 64 | var hiddenInput = 65 | $('', { 66 | 'name': '_method', 67 | 'type': 'hidden', 68 | 'value': link.data('method') 69 | }); 70 | 71 | return form.append(token, hiddenInput) 72 | .appendTo('body'); 73 | } 74 | }; 75 | 76 | laravel.initialize(); 77 | 78 | })(); -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Open Laravel 2 | 3 | A repository of open source projects built using Laravel. 4 | 5 | ## Getting Started 6 | 7 | Clone the project repository by running the command below if you use SSH 8 | 9 | `git clone git@github.com:ammezie/openlaravel.git` 10 | 11 | If you use https, use this instead 12 | 13 | `git clone https://github.com/ammezie/openlaravel.git` 14 | 15 | ## Getting Started 16 | 17 | `cd` into the project directory and run: 18 | 19 | `composer install` 20 | 21 | Duplicate `.env.example` and rename it `.env` 22 | 23 | Run: 24 | 25 | `php artisan key:generate` 26 | 27 | Then run 28 | 29 | `npm install` 30 | 31 | ## Setup Algolia 32 | 33 | Create a free Algolia account at [https://www.algolia.com/users/sign_up](https://www.algolia.com/users/sign_up) then fill in your Algolia API Keys in your `.env` file: 34 | 35 | ``` 36 | ALGOLIA_APP_ID=xxxxxxxxxx 37 | ALGOLIA_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 38 | ALGOLIA_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 39 | ``` 40 | 41 | ## Setup GitHub 42 | Create a GitHub personal access token at [https://github.com/settings/tokens](https://github.com/settings/tokens) with the following scopes `repo:status` and `public_repo` then fill in the generated token in your `.env` file: 43 | 44 | ``` 45 | GITHUB_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 46 | ``` 47 | 48 | Then run: 49 | 50 | `npm run dev` 51 | 52 | ## Database Migrations 53 | 54 | Be sure to fill in your database details in your `.env` file before running the migrations: 55 | 56 | `php artisan migrate` 57 | 58 | Once the database is settup and migrations are up, run 59 | 60 | `php artisan serve` 61 | 62 | and visit [http://localhost:8000/](http://localhost:8000/) to see the application in action. 63 | 64 | ## TODO 65 | 66 | * Filter by stars 67 | * Filter by activities 68 | * ~~Show project repo activity on view project page~~ 69 | * Add project screenshot/logo 70 | 71 | ## Contributing 72 | 73 | :+1::tada: First off, thanks for taking the time to contribute! :tada::+1: 74 | 75 | **Please submit your pull request against the `develop` branch only.** 76 | 77 | ## License 78 | 79 | The MIT License (MIT). Please see [License File](LICENSE.md) for more information. -------------------------------------------------------------------------------- /resources/assets/js/app.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * First we will load all of this project's JavaScript dependencies which 4 | * includes Vue and other libraries. It is a great starting point when 5 | * building robust, powerful web applications using Vue and Laravel. 6 | */ 7 | 8 | require('./bootstrap'); 9 | 10 | /** 11 | * Next, we will create a fresh Vue application instance and attach it to 12 | * the page. Then, you may begin adding components to this application 13 | * or customize the JavaScript scaffolding to fit your unique needs. 14 | */ 15 | 16 | Vue.component('search', require('./components/Search.vue')); 17 | 18 | const app = new Vue({ 19 | el: '#app' 20 | }); 21 | -------------------------------------------------------------------------------- /resources/assets/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Vue is a modern JavaScript library for building interactive web interfaces 3 | * using reactive data binding and reusable components. Vue's API is clean 4 | * and simple, leaving you to focus on building your next great project. 5 | */ 6 | 7 | window.Vue = require('vue'); 8 | 9 | /** 10 | * We'll load the axios HTTP library which allows us to easily issue requests 11 | * to our Laravel back-end. This library automatically handles sending the 12 | * CSRF token as a header based on the value of the "XSRF" token cookie. 13 | */ 14 | 15 | window.axios = require('axios'); 16 | 17 | window.axios.defaults.headers.common = { 18 | 'X-Requested-With': 'XMLHttpRequest' 19 | }; -------------------------------------------------------------------------------- /resources/assets/js/components/FormError.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /resources/assets/js/components/Pagination.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | « 7 | 8 | 9 | 11 | @{{ page }} 13 | 14 | 15 | 17 | » 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /resources/assets/js/components/Project.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{ project.title }} 9 | 10 | 11 | 12 | {{ project.short }} 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 45 | 46 | -------------------------------------------------------------------------------- /resources/assets/js/components/Search.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 38 | -------------------------------------------------------------------------------- /resources/assets/sass/_variables.sass: -------------------------------------------------------------------------------- 1 | @import "node_modules/bulma/sass/utilities/functions" 2 | 3 | // 1. Initial variables 4 | 5 | // Colors 6 | 7 | $black: #111 !default 8 | $grey-darker: #222324 !default 9 | $grey-dark: #69707a !default 10 | $grey: #aeb1b5 !default 11 | $grey-light: #d3d6db !default 12 | $grey-lighter: #f5f7fa !default 13 | $white: #fff !default 14 | 15 | // OpenLaravel custom colors 16 | $ol-blue: #098cd2 17 | $ol-orange: #ff8717 18 | 19 | $blue: #42afe3 !default 20 | $green: #97cd76 !default 21 | $orange: #f68b39 !default 22 | $purple: #847bb9 !default 23 | $red: #ed6c63 !default 24 | $turquoise: #1fc8db !default 25 | $yellow: #fce473 !default 26 | 27 | // Typography 28 | 29 | $family-sans-serif: "Lato", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default 30 | $family-monospace: "Source Code Pro", "Monaco", "Inconsolata", monospace !default 31 | 32 | $size-1: 48px !default 33 | $size-2: 40px !default 34 | $size-3: 28px !default 35 | $size-4: 24px !default 36 | $size-5: 18px !default 37 | $size-6: 14px !default 38 | 39 | $size-7: 11px !default 40 | 41 | $weight-normal: 400 !default 42 | $weight-bold: 700 !default 43 | $weight-title-normal: 300 !default 44 | $weight-title-bold: 500 !default 45 | 46 | // Breakpoints 47 | 48 | $tablet: 769px !default 49 | $desktop: 980px !default 50 | $widescreen: 1180px !default 51 | 52 | // Dimensions 53 | 54 | $column-gap: 20px !default 55 | 56 | $nav-height: 50px !default 57 | 58 | // Miscellaneous 59 | 60 | $easing: ease-out !default 61 | $radius-small: 2px !default 62 | $radius: 3px !default 63 | $radius-large: 5px !default 64 | $speed: 86ms !default 65 | 66 | // 2. Primary colors 67 | 68 | $primary: $ol-blue 69 | 70 | $secondary: $ol-orange 71 | 72 | $info: $blue !default 73 | $success: $green !default 74 | $warning: $yellow !default 75 | $danger: $red !default 76 | 77 | $light: $grey-lighter !default 78 | $dark: $grey-dark !default 79 | 80 | $text: $grey-dark !default 81 | 82 | // 3. Generated variables 83 | 84 | // Invert colors 85 | 86 | $primary-invert: findColorInvert($primary) !default 87 | $secondary-invert: findColorInvert($secondary) !default 88 | 89 | $info-invert: findColorInvert($info) !default 90 | $success-invert: findColorInvert($success) !default 91 | $warning-invert: findColorInvert($warning) !default 92 | $danger-invert: findColorInvert($danger) !default 93 | 94 | $light-invert: $dark !default 95 | $dark-invert: $light !default 96 | 97 | // General colors 98 | 99 | $body-background: $white 100 | 101 | $background: $white 102 | 103 | $border: $grey-light !default 104 | $border-hover: $grey !default 105 | 106 | // Text colors 107 | 108 | $text-invert: findColorInvert($text) !default 109 | $text-light: $grey !default 110 | $text-strong: $grey-darker !default 111 | 112 | // Code colors 113 | 114 | $code: $red !default 115 | $code-background: $background !default 116 | 117 | $pre: $text !default 118 | $pre-background: $background !default 119 | 120 | // Link colors 121 | 122 | $link: $primary !default 123 | $link-invert: $primary-invert !default 124 | $link-visited: $purple !default 125 | 126 | $link-hover: $secondary 127 | $link-hover-background: $grey-lighter !default 128 | $link-hover-border: $secondary 129 | 130 | $link-active: $grey-darker !default 131 | $link-active-border: $grey-darker !default 132 | 133 | // Control colors 134 | 135 | $control: $text-strong !default 136 | $control-background: $text-invert !default 137 | $control-border: $border !default 138 | 139 | $control-hover: $link-hover !default 140 | $control-hover-border: $border-hover !default 141 | 142 | $control-active: $link !default 143 | $control-active-background: $link !default 144 | $control-active-background-invert: $link-invert !default 145 | $control-active-border: $link !default 146 | 147 | // Typography 148 | 149 | $family-primary: $family-sans-serif !default 150 | $family-code: $family-monospace !default 151 | 152 | $size-small: $size-7 !default 153 | $size-normal: $size-6 !default 154 | $size-medium: $size-5 !default 155 | $size-large: $size-3 !default 156 | $size-huge: $size-1 !default 157 | 158 | // 4. Lists and maps 159 | 160 | $colors: (white: ($white, $black), black: ($black, $white), light: ($light, $light-invert), dark: ($dark, $dark-invert), primary: ($primary, $primary-invert), secondary: ($secondary, $secondary-invert), info: ($info, $info-invert), success: ($success, $success-invert), warning: ($warning, $warning-invert), danger: ($danger, $danger-invert)) !default 161 | 162 | $sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 !default -------------------------------------------------------------------------------- /resources/assets/sass/app.sass: -------------------------------------------------------------------------------- 1 | @import "variables" 2 | 3 | @import "node_modules/bulma/bulma" 4 | 5 | @import "utils" 6 | @import "components/components" 7 | @import "layout/layout" -------------------------------------------------------------------------------- /resources/assets/sass/components/components.sass: -------------------------------------------------------------------------------- 1 | @import "project-card" 2 | @import "search" -------------------------------------------------------------------------------- /resources/assets/sass/components/project-card.sass: -------------------------------------------------------------------------------- 1 | .card 2 | box-shadow: 0 2px 3px rgba($grey-darker, 0.1), 0 0 0 1px rgba($grey-dark, 0.1) 3 | height: 200px 4 | 5 | .card-content 6 | .title 7 | color: #00b0db 8 | border: none -------------------------------------------------------------------------------- /resources/assets/sass/components/search.sass: -------------------------------------------------------------------------------- 1 | span.algolia-autocomplete 2 | display: block !important 3 | 4 | .aa-input-container 5 | display: block 6 | position: relative 7 | 8 | .aa-input-search 9 | width: 100% 10 | padding: 12px 28px 12px 12px 11 | border: 1px solid #e4e4e4 12 | border-radius: 4px 13 | -webkit-transition: .2s 14 | transition: .2s 15 | font-size: 11px 16 | box-sizing: border-box 17 | color: #333 18 | -webkit-appearance: none 19 | -moz-appearance: none 20 | appearance: none 21 | 22 | .aa-input-search::-webkit-search-decoration, 23 | .aa-input-search::-webkit-search-cancel-button, 24 | .aa-input-search::-webkit-search-results-button, 25 | .aa-input-search::-webkit-search-results-decoration 26 | display: none 27 | 28 | .aa-input-search:focus 29 | outline: 0 30 | border-color: #3a96cf 31 | box-shadow: 4px 4px 0 rgba(58, 150, 207, 0.1) 32 | 33 | .aa-input-icon 34 | height: 16px 35 | width: 16px 36 | position: absolute 37 | top: 50% 38 | right: 16px 39 | -webkit-transform: translateY(-50%) 40 | transform: translateY(-50%) 41 | fill: #e4e4e4 42 | 43 | .aa-hint 44 | color: #e4e4e4 45 | 46 | .aa-dropdown-menu 47 | background-color: #fff 48 | border: 1px solid rgba(228, 228, 228, 0.6) 49 | border-top-width: 1px 50 | font-family: "Montserrat", sans-serif 51 | width: 100% 52 | // margin-top: 10px 53 | font-size: 11px 54 | border-radius: 4px 55 | box-sizing: border-box 56 | 57 | .aa-suggestion 58 | padding: 12px 59 | border-top: 1px solid rgba(228, 228, 228, 0.6) 60 | cursor: pointer 61 | -webkit-transition: .2s 62 | transition: .2s 63 | display: -webkit-box 64 | display: -ms-flexbox 65 | display: flex 66 | -webkit-box-pack: justify 67 | -ms-flex-pack: justify 68 | justify-content: space-between 69 | -webkit-box-align: center 70 | -ms-flex-align: center 71 | align-items: center 72 | 73 | .aa-suggestion:hover, 74 | .aa-suggestion.aa-cursor 75 | background-color: rgba(241, 241, 241, 0.35) 76 | 77 | .aa-suggestion 78 | span:first-child 79 | color: #333 80 | 81 | .aa-suggestion 82 | span:last-child 83 | text-transform: uppercase 84 | color: #a9a9a9 85 | 86 | .aa-suggestion 87 | span:first-child em 88 | span:last-child em 89 | font-weight: 700 90 | font-style: normal 91 | color: $secondary 92 | padding: 2px 0 2px 2px 93 | 94 | .aa-empty 95 | text-align: left 96 | padding: 10px 97 | color: #333 98 | 99 | .branding 100 | padding: 10px 101 | text-align: right 102 | &__text 103 | color: #333 104 | padding-right: 5px 105 | img 106 | float: right 107 | width: 50px -------------------------------------------------------------------------------- /resources/assets/sass/layout/footer.sass: -------------------------------------------------------------------------------- 1 | .footer 2 | background-color: #0089a9 3 | color: #ffffff 4 | padding-bottom: 40px 5 | a 6 | &, 7 | &:visited 8 | color: #ffffff !important 9 | &:hover 10 | color: $secondary 11 | &:not(.icon) 12 | border-bottom: 1px dotted $secondary 13 | &:hover 14 | background-color: $secondary 15 | // border-bottom-color: #ffffff 16 | a.handle 17 | border-bottom: none 18 | &:hover 19 | background-color: transparent 20 | 21 | .footer 22 | .content 23 | color: #ffffff -------------------------------------------------------------------------------- /resources/assets/sass/layout/header.sass: -------------------------------------------------------------------------------- 1 | .logo 2 | align-items: stretch 3 | display: flex 4 | justify-content: center 5 | 6 | .hero.is-primary .subtitle 7 | color: #fff 8 | border: none 9 | 10 | .nav-item 11 | img 12 | max-height: 3.75rem -------------------------------------------------------------------------------- /resources/assets/sass/layout/layout.sass: -------------------------------------------------------------------------------- 1 | @import "footer" 2 | @import "header" -------------------------------------------------------------------------------- /resources/assets/sass/utils.sass: -------------------------------------------------------------------------------- 1 | span.required 2 | color: $red 3 | 4 | // .title, 5 | // .subtitle 6 | // padding-bottom: 20px 7 | // border-bottom: 1px solid $border 8 | 9 | .is-fs22 10 | font-size: 22px 11 | .control .button span.icon 12 | margin-left: 0!important 13 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Passwords must be at least six characters and match the confirmation.', 17 | 'reset' => 'Your password has been reset!', 18 | 'sent' => 'We have e-mailed your password reset link!', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /resources/lang/en/validation.php: -------------------------------------------------------------------------------- 1 | '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 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', 20 | 'alpha' => 'The :attribute may only contain letters.', 21 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.', 22 | 'alpha_num' => 'The :attribute may only contain letters and numbers.', 23 | 'array' => 'The :attribute must be an array.', 24 | 'before' => 'The :attribute must be a date before :date.', 25 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', 26 | 'between' => [ 27 | 'numeric' => 'The :attribute must be between :min and :max.', 28 | 'file' => 'The :attribute must be between :min and :max kilobytes.', 29 | 'string' => 'The :attribute must be between :min and :max characters.', 30 | 'array' => 'The :attribute must have between :min and :max items.', 31 | ], 32 | 'boolean' => 'The :attribute field must be true or false.', 33 | 'confirmed' => 'The :attribute confirmation does not match.', 34 | 'date' => 'The :attribute is not a valid date.', 35 | 'date_format' => 'The :attribute does not match the format :format.', 36 | 'different' => 'The :attribute and :other must be different.', 37 | 'digits' => 'The :attribute must be :digits digits.', 38 | 'digits_between' => 'The :attribute must be between :min and :max digits.', 39 | 'dimensions' => 'The :attribute has invalid image dimensions.', 40 | 'distinct' => 'The :attribute field has a duplicate value.', 41 | 'email' => 'The :attribute must be a valid email address.', 42 | 'exists' => 'The selected :attribute is invalid.', 43 | 'file' => 'The :attribute must be a file.', 44 | 'filled' => 'The :attribute field is required.', 45 | 'image' => 'The :attribute must be an image.', 46 | 'in' => 'The selected :attribute is invalid.', 47 | 'in_array' => 'The :attribute field does not exist in :other.', 48 | 'integer' => 'The :attribute must be an integer.', 49 | 'ip' => 'The :attribute must be a valid IP address.', 50 | 'json' => 'The :attribute must be a valid JSON string.', 51 | 'max' => [ 52 | 'numeric' => 'The :attribute may not be greater than :max.', 53 | 'file' => 'The :attribute may not be greater than :max kilobytes.', 54 | 'string' => 'The :attribute may not be greater than :max characters.', 55 | 'array' => 'The :attribute may not have more than :max items.', 56 | ], 57 | 'mimes' => 'The :attribute must be a file of type: :values.', 58 | 'mimetypes' => 'The :attribute must be a file of type: :values.', 59 | 'min' => [ 60 | 'numeric' => 'The :attribute must be at least :min.', 61 | 'file' => 'The :attribute must be at least :min kilobytes.', 62 | 'string' => 'The :attribute must be at least :min characters.', 63 | 'array' => 'The :attribute must have at least :min items.', 64 | ], 65 | 'not_in' => 'The selected :attribute is invalid.', 66 | 'numeric' => 'The :attribute must be a number.', 67 | 'present' => 'The :attribute field must be present.', 68 | 'regex' => 'The :attribute format is invalid.', 69 | 'required' => 'The :attribute field is required.', 70 | 'required_if' => 'The :attribute field is required when :other is :value.', 71 | 'required_unless' => 'The :attribute field is required unless :other is in :values.', 72 | 'required_with' => 'The :attribute field is required when :values is present.', 73 | 'required_with_all' => 'The :attribute field is required when :values is present.', 74 | 'required_without' => 'The :attribute field is required when :values is not present.', 75 | 'required_without_all' => 'The :attribute field is required when none of :values are present.', 76 | 'same' => 'The :attribute and :other must match.', 77 | 'size' => [ 78 | 'numeric' => 'The :attribute must be :size.', 79 | 'file' => 'The :attribute must be :size kilobytes.', 80 | 'string' => 'The :attribute must be :size characters.', 81 | 'array' => 'The :attribute must contain :size items.', 82 | ], 83 | 'string' => 'The :attribute must be a string.', 84 | 'timezone' => 'The :attribute must be a valid zone.', 85 | 'unique' => 'The :attribute has already been taken.', 86 | 'uploaded' => 'The :attribute failed to upload.', 87 | 'url' => 'The :attribute format is invalid.', 88 | 89 | /* 90 | |-------------------------------------------------------------------------- 91 | | Custom Validation Language Lines 92 | |-------------------------------------------------------------------------- 93 | | 94 | | Here you may specify custom validation messages for attributes using the 95 | | convention "attribute.rule" to name the lines. This makes it quick to 96 | | specify a specific custom language line for a given attribute rule. 97 | | 98 | */ 99 | 100 | 'custom' => [ 101 | 'attribute-name' => [ 102 | 'rule-name' => 'custom-message', 103 | ], 104 | ], 105 | 106 | /* 107 | |-------------------------------------------------------------------------- 108 | | Custom Validation Attributes 109 | |-------------------------------------------------------------------------- 110 | | 111 | | The following language lines are used to swap attribute place-holders 112 | | with something more reader friendly such as E-Mail Address instead 113 | | of "email". This simply helps us make messages a little cleaner. 114 | | 115 | */ 116 | 117 | 'attributes' => [], 118 | 119 | ]; 120 | -------------------------------------------------------------------------------- /resources/views/auth/emails/password.blade.php: -------------------------------------------------------------------------------- 1 | Click here to reset your password: {{ $link }} 2 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth') 2 | 3 | @section('content') 4 | 5 | 6 | 7 | Login 8 | 9 | 10 | {{ csrf_field() }} 11 | 12 | 13 | E-Mail Address 14 | 15 | 16 | 17 | 22 | 23 | @if ($errors->has('email')) 24 | 25 | {{ $errors->first('email') }} 26 | 27 | @endif 28 | 29 | 30 | 31 | Password 32 | 33 | 34 | 35 | 40 | 41 | @if ($errors->has('password')) 42 | 43 | {{ $errors->first('password') }} 44 | 45 | @endif 46 | 47 | 48 | 49 | 50 | 51 | Remember Me 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | Login 61 | 62 | 63 | Forgot Your Password? 64 | 65 | 66 | 67 | 68 | @endsection 69 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth') 2 | 3 | @section('content') 4 | 5 | 6 | @include('includes.flash') 7 | 8 | Reset Password 9 | 10 | 11 | {{ csrf_field() }} 12 | 13 | 14 | E-Mail Address 15 | 16 | 17 | 18 | 23 | 24 | @if ($errors->has('email')) 25 | 26 | {{ $errors->first('email') }} 27 | 28 | @endif 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | Send Password Reset Link 37 | 38 | 39 | 40 | 41 | 42 | @endsection 43 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth') 2 | 3 | @section('content') 4 | 5 | 6 | 7 | Reset Password 8 | 9 | 10 | {{ csrf_field() }} 11 | 12 | 13 | 14 | 15 | E-Mail Address 16 | 17 | 18 | 19 | 24 | 25 | @if ($errors->has('email')) 26 | 27 | {{ $errors->first('email') }} 28 | 29 | @endif 30 | 31 | 32 | 33 | Password 34 | 35 | 36 | 37 | 42 | 43 | @if ($errors->has('password')) 44 | 45 | {{ $errors->first('password') }} 46 | 47 | @endif 48 | 49 | 50 | 51 | Password 52 | 53 | 54 | 55 | 60 | 61 | @if ($errors->has('password_confirmation')) 62 | 63 | {{ $errors->first('password_confirmation') }} 64 | 65 | @endif 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | Reset Password 74 | 75 | 76 | 77 | 78 | 79 | @endsection 80 | -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth') 2 | 3 | @section('content') 4 | 5 | 6 | 7 | Register 8 | 9 | 10 | {{ csrf_field() }} 11 | 12 | 13 | Name 14 | 15 | 16 | 17 | 22 | 23 | @if ($errors->has('name')) 24 | 25 | {{ $errors->first('name') }} 26 | 27 | @endif 28 | 29 | 30 | 31 | E-Mail Address 32 | 33 | 34 | 35 | 40 | 41 | @if ($errors->has('email')) 42 | 43 | {{ $errors->first('email') }} 44 | 45 | @endif 46 | 47 | 48 | 49 | Password 50 | 51 | 52 | 53 | 58 | 59 | @if ($errors->has('password')) 60 | 61 | {{ $errors->first('password') }} 62 | 63 | @endif 64 | 65 | 66 | 67 | Password 68 | 69 | 70 | 71 | 76 | 77 | @if ($errors->has('password_confirmation')) 78 | 79 | {{ $errors->first('password_confirmation') }} 80 | 81 | @endif 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | Register 90 | 91 | 92 | 93 | 94 | 95 | @endsection 96 | -------------------------------------------------------------------------------- /resources/views/contact.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('title', 'Contact') 4 | 5 | @section('content') 6 | 7 | 8 | Contact 9 | 10 | 11 | Comments, Suggestions, Improvements? Let’s talk. 12 | 13 | Have something to say? Feel free to reach out! You can contact me meziemichael@gmail.com. 14 | 15 | 16 | Thank you! 17 | 18 | 19 | 20 | @stop -------------------------------------------------------------------------------- /resources/views/dashboard/projects/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.dashboard') 2 | 3 | @push('styles') 4 | 5 | @endpush 6 | 7 | @section('content') 8 | 9 | 10 | 11 | Edit Project 12 | 13 | 14 | 15 | {{ method_field("PATCH") }} 16 | {!! csrf_field() !!} 17 | 18 | 19 | Title 20 | 21 | 22 | 23 | @if ($errors->has('title')) 24 | 25 | {{ $errors->first('title') }} 26 | 27 | @endif 28 | 29 | 30 | 31 | Short Description 32 | 33 | 34 | 35 | @if ($errors->has('short')) 36 | 37 | {{ $errors->first('short') }} 38 | 39 | @endif 40 | 41 | 42 | 43 | Project URL 44 | 45 | 46 | 47 | @if ($errors->has('url')) 48 | 49 | {{ $errors->first('url') }} 50 | 51 | @endif 52 | 53 | 54 | 55 | Repository URL 56 | 57 | 58 | 59 | @if ($errors->has('repo_url')) 60 | 61 | {{ $errors->first('repo_url') }} 62 | 63 | @endif 64 | 65 | 66 | 67 | description 68 | {{ old('description', $project->description) }} 69 | 70 | @if ($errors->has('description')) 71 | 72 | {{ $errors->first('description') }} 73 | 74 | @endif 75 | 76 | 77 | 78 | Update 79 | Cancel 80 | 81 | 82 | 83 | 84 | 85 | 86 | @stop 87 | 88 | @push('scripts') 89 | 90 | 95 | @endpush -------------------------------------------------------------------------------- /resources/views/dashboard/projects/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.dashboard') 2 | 3 | @section('content') 4 | 5 | 6 | Projects 7 | 8 | 9 | 10 | @if (session('status')) 11 | 12 | {{ session('status') }} 13 | 14 | @endif 15 | 16 | 17 | 18 | 19 | Title 20 | Project URL 21 | Repo URL 22 | Short Desc 23 | Status 24 | 25 | 26 | 27 | 28 | @foreach ($projects as $project) 29 | 30 | 31 | 32 | {{ $project->title }} 33 | 34 | 35 | {{ $project->project_url }} 36 | {{ $project->repo_url }} 37 | {{ $project->short }} 38 | {{ $project->status }} 39 | 40 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 59 | 60 | 61 | 62 | 63 | @endforeach 64 | 65 | 66 | 67 | {{ $projects->links() }} 68 | 69 | 70 | @stop 71 | 72 | @push('scripts') 73 | 74 | @endpush -------------------------------------------------------------------------------- /resources/views/errors/404.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('title', '404 Not Found') 4 | 5 | @section('content') 6 | 7 | 8 | 404 Not Found 9 | 10 | 11 | Woops! Looks like this page doesn't exist. 12 | 13 | 14 | Take Me Home 15 | 16 | 17 | @stop -------------------------------------------------------------------------------- /resources/views/errors/503.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Be right back. 5 | 6 | 7 | 8 | 39 | 40 | 41 | 42 | 43 | Be right back. 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /resources/views/includes/flash.blade.php: -------------------------------------------------------------------------------- 1 | @if (session('status')) 2 | 3 | {{ session('status') }} 4 | 5 | @endif -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | @yield('title') | Open Laravel 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | @stack('styles') 21 | 22 | 23 | 29 | 30 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | Submit Project 53 | 54 | 55 | 56 | 57 | 58 | 59 | @stack('hero') 60 | 61 | 62 | 63 | @yield('content') 64 | 65 | 66 | 67 | 94 | 95 | 96 | 97 | @stack('scripts') 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /resources/views/layouts/auth.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Open Laravel | A Repository Of Open Source Projects Built Using Laravel 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | @yield('content') 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /resources/views/layouts/dashboard.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Open Laravel - Admin Dashboard 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | @stack('styles') 22 | 23 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | Menu 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | {{-- --}} 49 | Open Laravel 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | @if (Auth::guest()) 58 | Login 59 | @else 60 | 61 | 62 | {{ Auth::user()->name }} 63 | 64 | 65 | 66 | 69 | 70 | Logout 71 | 72 | 73 | {{ csrf_field() }} 74 | 75 | 76 | 77 | 78 | @endif 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | @yield('content') 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | @stack('scripts') 95 | 96 | -------------------------------------------------------------------------------- /resources/views/partials/filters.blade.php: -------------------------------------------------------------------------------- 1 | 2 | Filters: 3 | Recently Added 4 | Most Starred 5 | Recent Activities 6 | -------------------------------------------------------------------------------- /resources/views/partials/hero.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | A repository of over {{ $projectsCount }} open source projects built using Laravel 5 | 6 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /resources/views/partials/pagination.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 3 | {{-- Previous Page Link --}} 4 | @if ($paginator->onFirstPage()) 5 | « 6 | @else 7 | « 8 | @endif 9 | 10 | {{-- Pagination Elements --}} 11 | 12 | @foreach ($elements as $element) 13 | {{-- "Three Dots" Separator --}} 14 | @if (is_string($element)) 15 | {{ $element }} 16 | @endif 17 | 18 | {{-- Array Of Links --}} 19 | @if (is_array($element)) 20 | @foreach ($element as $page => $url) 21 | @if ($page == $paginator->currentPage()) 22 | {{ $page }} 23 | @else 24 | {{ $page }} 25 | @endif 26 | @endforeach 27 | @endif 28 | @endforeach 29 | 30 | 31 | {{-- Next Page Link --}} 32 | @if ($paginator->hasMorePages()) 33 | » 34 | @else 35 | » 36 | @endif 37 | 38 | @endif -------------------------------------------------------------------------------- /resources/views/projects/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('title', 'Submit Project') 4 | 5 | @push('styles') 6 | 7 | @endpush 8 | 9 | @section('content') 10 | 11 | 12 | @include('includes.flash') 13 | 14 | Submit Project 15 | 16 | 17 | {{ csrf_field() }} 18 | 19 | 20 | Project Title * 21 | 22 | 23 | 30 | 31 | @if ($errors->has('title')) 32 | 33 | {{ $errors->first('title') }} 34 | 35 | @endif 36 | 37 | 38 | 39 | Short Description * 40 | 41 | 42 | 49 | 50 | One sentence description about the project. 51 | 52 | 53 | @if ($errors->has('short')) 54 | 55 | {{ $errors->first('short') }} 56 | 57 | @endif 58 | 59 | 60 | 61 | Project URL 62 | 63 | 64 | 70 | 71 | @if ($errors->has('url')) 72 | 73 | {{ $errors->first('url') }} 74 | 75 | @endif 76 | 77 | 78 | 79 | Source Repository URL * 80 | 81 | 82 | 89 | 90 | @if ($errors->has('repo_url')) 91 | 92 | {{ $errors->first('repo_url') }} 93 | 94 | @endif 95 | 96 | 97 | 98 | Project Description * 99 | 100 | 101 | {{ old('description') }} 106 | 107 | @if ($errors->has('description')) 108 | 109 | {{ $errors->first('description') }} 110 | 111 | @endif 112 | 113 | 114 | 115 | Submit Project 116 | 117 | 118 | 119 | 120 | @stop 121 | 122 | @push('scripts') 123 | 124 | 130 | @endpush -------------------------------------------------------------------------------- /resources/views/projects/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('title', 'A Repository Of Open Source Projects Built Using Laravel') 4 | 5 | @push('hero') 6 | @include('partials.hero') 7 | @endpush 8 | 9 | @section('content') 10 | 11 | 12 | @foreach ($projects as $project) 13 | 14 | 15 | 16 | 17 | 18 | 19 | {{ $project->title }} 20 | 21 | 22 | {{ $project->short }} 23 | 24 | 25 | 26 | 27 | 28 | 29 | @endforeach 30 | 31 | 32 | 33 | {{ $projects->links('partials.pagination') }} 34 | 35 | 36 | @stop -------------------------------------------------------------------------------- /resources/views/projects/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('title') 4 | {{ $project->title }} 5 | @stop 6 | 7 | @push('hero') 8 | @include('partials.hero') 9 | @endpush 10 | 11 | @section('content') 12 | 13 | 14 | 15 | 16 | 17 | {{ $project->title }} 18 | 19 | 20 | @markdown($project->description) 21 | 22 | 23 | @if ($project->project_url) 24 | 25 | Project Home 26 | 27 | @endif 28 | 29 | Project Repository 30 | 31 | 32 | 33 | 34 | 35 |
17 | 22 | 23 | @if ($errors->has('email')) 24 | 25 | {{ $errors->first('email') }} 26 | 27 | @endif 28 |
35 | 40 | 41 | @if ($errors->has('password')) 42 | 43 | {{ $errors->first('password') }} 44 | 45 | @endif 46 |
49 | 50 | 51 | Remember Me 52 | 53 |
56 | 57 | 58 | 59 | 60 | Login 61 | 62 | 63 | Forgot Your Password? 64 |
18 | 23 | 24 | @if ($errors->has('email')) 25 | 26 | {{ $errors->first('email') }} 27 | 28 | @endif 29 |
32 | 33 | 34 | 35 | 36 | Send Password Reset Link 37 | 38 |
19 | 24 | 25 | @if ($errors->has('email')) 26 | 27 | {{ $errors->first('email') }} 28 | 29 | @endif 30 |
37 | 42 | 43 | @if ($errors->has('password')) 44 | 45 | {{ $errors->first('password') }} 46 | 47 | @endif 48 |
55 | 60 | 61 | @if ($errors->has('password_confirmation')) 62 | 63 | {{ $errors->first('password_confirmation') }} 64 | 65 | @endif 66 |
69 | 70 | 71 | 72 | 73 | Reset Password 74 | 75 |
17 | 22 | 23 | @if ($errors->has('name')) 24 | 25 | {{ $errors->first('name') }} 26 | 27 | @endif 28 |
35 | 40 | 41 | @if ($errors->has('email')) 42 | 43 | {{ $errors->first('email') }} 44 | 45 | @endif 46 |
53 | 58 | 59 | @if ($errors->has('password')) 60 | 61 | {{ $errors->first('password') }} 62 | 63 | @endif 64 |
71 | 76 | 77 | @if ($errors->has('password_confirmation')) 78 | 79 | {{ $errors->first('password_confirmation') }} 80 | 81 | @endif 82 |
85 | 86 | 87 | 88 | 89 | Register 90 | 91 |
13 | Have something to say? Feel free to reach out! You can contact me meziemichael@gmail.com. 14 |
16 | Thank you! 17 |
11 | Woops! Looks like this page doesn't exist. 12 |
23 | 30 | 31 | @if ($errors->has('title')) 32 | 33 | {{ $errors->first('title') }} 34 | 35 | @endif 36 |
42 | 49 | 50 | One sentence description about the project. 51 | 52 | 53 | @if ($errors->has('short')) 54 | 55 | {{ $errors->first('short') }} 56 | 57 | @endif 58 |
64 | 70 | 71 | @if ($errors->has('url')) 72 | 73 | {{ $errors->first('url') }} 74 | 75 | @endif 76 |
82 | 89 | 90 | @if ($errors->has('repo_url')) 91 | 92 | {{ $errors->first('repo_url') }} 93 | 94 | @endif 95 |
101 | {{ old('description') }} 106 | 107 | @if ($errors->has('description')) 108 | 109 | {{ $errors->first('description') }} 110 | 111 | @endif 112 |
115 | Submit Project 116 |