mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
576 B
PHTML
25 lines
576 B
PHTML
4 months ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Models\Post;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class ClientController extends Controller
|
||
|
{
|
||
|
//
|
||
|
public function welcome(){
|
||
|
$area = 'index';
|
||
|
$title = config('app.name');
|
||
|
$subtitle = getSetting('subtitle');
|
||
|
return view('client.welcome',compact('area','title','subtitle'));
|
||
|
}
|
||
|
|
||
|
public function post(Post $post){
|
||
|
$area = 'post';
|
||
|
$title = $post->title;
|
||
|
$subtitle = $post->subtitle;
|
||
|
return view('client.post',compact('area','post','title','subtitle'));
|
||
|
}
|
||
|
}
|