This commit is contained in:
2021-11-25 16:24:32 +08:00
parent e31831cdb6
commit cd4d397fac
73 changed files with 16931 additions and 45 deletions

View File

@@ -2,9 +2,7 @@
namespace App\Http\Controllers;
use App\Models\Advert;
use App\Models\Category;
use Carbon\Carbon;
class CategoryController extends Controller
{
@@ -33,6 +31,10 @@ class CategoryController extends Controller
if ($category->type == Category::TYPE_ADVERT) {
$template = 'images';
}
if ($category->type == Category::TYPE_PHOTO) {
$template = 'photos';
}
}