Add all files
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Paymenter\Extensions\Others\ProductPageBuilder\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Paymenter\Extensions\Others\ProductPageBuilder\Models\ProductPageSettings;
|
||||
|
||||
class ProductPageController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$pages = ProductPageSettings::all();
|
||||
|
||||
return view('product_page_builder::index', compact('pages'));
|
||||
}
|
||||
|
||||
public function show($slug)
|
||||
{
|
||||
$page = ProductPageSettings::whereJsonContains('hero_section->slug', $slug)->firstOrFail();
|
||||
|
||||
return view('product_page_builder::show', compact('page'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user