mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
update: UNIT3D linting
- github action updated with new ruleset in pint.json - codebase linted with new ruleset - contributors can now run `./vendor/bin/pint` - action workflow will auto correct any lint issues upon commit/opened pull request
This commit is contained in:
@@ -28,7 +28,7 @@ class ContactController extends Controller
|
||||
*/
|
||||
public function index(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
{
|
||||
return \view('contact.index');
|
||||
return view('contact.index');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,12 +37,12 @@ class ContactController extends Controller
|
||||
public function store(Request $request): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
// Fetch owner account
|
||||
$user = User::where('username', \config('unit3d.owner-username'))->first();
|
||||
$user = User::where('username', config('unit3d.owner-username'))->first();
|
||||
|
||||
$input = $request->all();
|
||||
Mail::to($user->email)->send(new Contact($input));
|
||||
|
||||
return \to_route('home.index')
|
||||
return to_route('home.index')
|
||||
->withSuccess('Your Message Was Successfully Sent');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user