Search
 
SCRIPT & CODE EXAMPLE
 

PHP

forward parameter from blade to another blade with filter

blade : 
{{ route('coupon.couponfilter', [$user->id,  $startDate, $endDate]) }}
web: 
Route::get('admin/couponfilter/{id}/{startDate}/{endDate}', 'CouponController@couponfilter')->name('coupon.couponfilter');

controller: 
public function couponfilter(Request $request)
 $coupon = Coupon::where('user_id', $request->id)->where('buy_date', '>=', $request->startDate)->where('buy_date', '<=', $request->endDate)->orderBy('buy_date', 'desc')->get();
return view('admin.coupon.index', compact('coupon'));
Comment

PREVIOUS NEXT
Code Example
Php :: PHP Fatal error: Constructor test::test() cannot declare a return type in /home/iBMCb9/prog.php on line 6 
Php :: Yii2 Fatal Error: Require_Once() 
Php :: wordpress disable posts 
Php :: php parse xml 
Php :: add softDelete in modeldata laravel 
Php :: php loop through months 
Php :: use if in laravel blade 
Php :: set null on foreign key deletion in laravel 
Php :: phpmyadmin import size limit 
Php :: CORSS oauth/token lavarel 
Php :: foreach skip first php 
Php :: laravel required if another field has value 
Php :: route group controller laravel 
Php :: get php to send email from form 
Php :: how to delete a file in laravel 
Php :: show html as text in php 
Php :: php detect base64 encoding 
Php :: larvel check two password 
Php :: laravel carbon first day of month 
Php :: barryvdh/laravel-dompdf laravel 8 header and footer every page 
Php :: turn text file to string php 
Php :: laravel clear table 
Php :: wordpress get permalink in loop 
Php :: php form examples tutorials with code 
Php :: laravel add timestamps to existing table 
Php :: get table name of model laravel 
Php :: add new column in existing table in laravel migration 
Php :: php store log in a text file 
Php :: php array to csv 
Php :: php change date format from d/m/y to y-m-d 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =