for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers;
use App\Models\Post;
use App\Services\Snippets\GalleryMasonryService;
use App\Services\StaticPageService;
use Illuminate\Http\Request;
class StaticPageController extends Controller
{
private StaticPageService $staticPageService;
public function __construct(
StaticPageService $staticPageService
) {
$this->staticPageService = $staticPageService;
}
/**
* Show the about me page.
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public function aboutMe()
return view('pages.aboutMe');
* Show the treatments page.
public function treatments()
return view('pages.treatments');
* Show the Contact Improvisation page.
* @throws \Spatie\ModelStatus\Exceptions\InvalidStatus
public function contactImprovisation()
$gallery1Html = $this->staticPageService->getStaticGalleryHtml('contact improvisation', true);
return view('pages.contactImprovisation', [
'gallery1Html' => $gallery1Html,
]);