Category : laravel-7

Order ID example i have order id = 51 like in this route => /admin/order/51 how to call the order id from routes to Helpers.PHP this my Helpers.PHP public static function getAllProductFromOrderItem($user_id = ”, $order_id = ”) { if (Auth::check()) { if ($user_id == "") $user_id = auth()->user()->id; return OrderItem::with(‘product’)->where(‘user_id’, $user_id)->where(‘order_id’, $order_id)->get(); } else { ..

Read more

I want to show the same category’s subcategory on my images page. But when I am using foreach loop then all subcategory view is happening. demo- https://oyewallpaper.com/photo/28529/rashmika-mandanna-saree-whatsapp-dp-pics-images <h4 style="margin-top:-5px;">Related</h4> <div class="projects-catalog" style=" margin-bottom: -15px;margin-top: -10px;"> <div class="catalog-cover"> <i class="left-button"></i> <ul class="sliderWrapper1 sliderscroll"> @foreach( AppModelsSubCategories::where(‘subcategories_id’, $response->categories_id)->get() as $subcategories ) <?php if( $subcategories->thumbnail == ” ) { ..

Read more

I want to install this code editor on my project: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/predefined-builds/quick-start.html However, for some reason I cannot do so, I want to add the WYSIWYG to my text areas mainly Education and Bio, Here is my app.blade.php file : <!doctype html> <html lang="{{ str_replace(‘_’, ‘-‘, app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!– ..

Read more

I changed my PC and installed a new xampp where php version is 8+. Now I clone my git laravel project, which one laravel 7. When commend artisan serve it shows me some error like that PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of IlluminateSupportCollection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed ..

Read more