for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Lang;
use App\Models\JobPoster;
use App\Models\JobApplication;
class DemoController extends Controller
{
/**
* Display a listing of the applicants to specified job.
*
* @return \Illuminate\Http\Response
*/
public function reviewApplications()
$jobPoster = factory(JobPoster::class)->state('closed')->create();
$applications = factory(JobApplication::class, 10)->create([
'job_poster_id' => $jobPoster->id
]);
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:
someFunctionCall( $firstArgument, $secondArgument, $thirdArgument ); // Closing parenthesis on a new line.
$jobPoster->job_applications()->saveMany($applications);
$applications->load(['veteran_status', 'citizenship_declaration']);
return view('manager/review_applications', [
return view('manager/rev...ons' => $applications))
Illuminate\View\View
Illuminate\Http\Response
/*Localization Strings*/
'jobs_l10n' => Lang::get('manager/job_index'),
/* Data */
'job' => $jobPoster,
'applications' => $applications,
}