Skip to content

Commit b127c3e

Browse files
author
ahmadhuss
committed
feat: Assets have been added for the page
1 parent 4f5472f commit b127c3e

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use App\Models\Category;
6+
use App\Models\Product;
7+
use Illuminate\Http\Request;
8+
9+
class HomeController extends Controller
10+
{
11+
public function index() {
12+
$categories = Category::select('id','name')->get();
13+
$products = Product::select('name', 'price', 'description')->get();
14+
return view('home', compact('categories', 'products'));
15+
}
16+
}

public/css/bootstrap.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/bootstrap.bundle.min.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/jquery.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)