January 8, 2021

Grocery app add-ons

Categories app/Helpers/helpers.php Line no. 639 - [php] function categories($orderByField,$orderBy,$limit) { $categories = Category::orderBy($orderByField,$orderBy)->limit($limit)->get(); return $categories; } resources/views/website/footer.blade.php Line no. 33 - @php $categories = categories('id','ASC',10); @endphp @foreach($categories as $category) <li><a href="{{ url('/shopproductsbycategory?id='.$category->id) }}"> {{ $category->name }} </a></li> @endforeach [/php] 404 Custom Page app/Exceptions/Handler.php Line no. 57 - [php] return response()->view('errors.404'); [php] changed file – resources/views/errors/404.blade.php Store...