This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Routing\UrlGenerator; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Schema; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
We want to upgrade from initialVersion to targetVersion. To do this | |
we run through these steps: | |
- First, we need one upgrade for each incremental major version | |
(resetting the other numbers to 0) | |
- Next, we need one upgrade for each incremental minor version | |
(resetting the third and fourth numbers, if applicable, to 0) | |
- Then, we need a one-time upgrade to the target third number | |
(if applicable) | |
- Finally, we need a one-time upgrade to the target fourth number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//... | |
class ApproveCandidate extends Mailable | |
{ | |
use Queueable, SerializesModels; | |
public $user; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//... | |
class ApproveCandidate extends Command | |
{ | |
/** | |
* The name and signature of the console command. | |
* | |
* @var string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//... | |
class CandidateController extends Controller | |
{ | |
// ... | |
/** | |
* @param Request $request | |
* @return \Illuminate\Http\JsonResponse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<form method="POST" action="/" @submit.prevent="submitCandidateApplication" class="form"> | |
<div class="alert alert-success" v-if="success"> | |
{{ success }} | |
</div> | |
<div class="alert alert-danger" role="alert" v-if="errors"> | |
Woops had some problems saving |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.app') | |
@section('content') | |
<header> | |
<div class="container"> | |
<div class="row mt-5"> | |
<div class="col-md-6 col-sm-12"> | |
<h1 class="mb-3">Join the tech community 🤝</h1> | |
<h3 class="mb-5 text-small"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
body { | |
background-color: white !important; | |
} | |
p { | |
color: black !important; | |
} | |
</style> | |
<p>Hey {{ $user->first_name }},</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-12"> | |
@if(!empty($candidate->resume_file_path)) | |
<iframe src="https://s3-us-west-1.amazonaws.com/employbl-production/{{$candidate->resume_file_path}}" | |
width="800px" height="600px"></iframe> | |
@else | |
<p class="text-danger">{{ $candidate->first_name }} has not uploaded a resume yet</p> | |
@endif | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\User; | |
use Illuminate\Support\Facades\Storage; | |
class CandidateController extends Controller | |
{ |