skip to Main Content

Disable dropdown in Laravel Blade

I have this dropdown i want to make it read only or disable {{ Form::select('name[]',$names,$name : '' ,['class'=>'form-control name input_fields','readonly'=>true,'id'=>'name']) }} tried disabled also {{ Form::select('name[]',$names,$name : '' ,['class'=>'form-control name input_fields','disabled'=>true,'id'=>'name']) }} but i want to disable options only the…

VIEW QUESTION

Splitting Paginated Blade – Laravel

Below is my controller code $category_ids = array(); foreach($categories as $category){ $category_ids[] = $category->id; } $paginated_products = Product::where('status',1)->whereIn('category_id',$category_ids)->latest()->paginate(30); Below is my blade view code $first_ten_products = array_slice($paginated_products,0,9); But am getting the error below how can i fix it. Thanks array_slice():…

VIEW QUESTION
Back To Top
Search