Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Laravel 8 - get values of url query strings in controller

---web.php---
Route::get('/api/webhook/{val1?}/{val2?}/{val3?}', [AppHttpControllersXyzController::class, 'xprocess'])->name('xprocess');

---XyzController.php---
    public function xprocess(Request $request, $val1=null, $val2=null, $val3=null)
    {
        $val1 = $request->query('val1');
        $val2 = $request->query('val2');
        $val3 = $request->query('val3');
        
        //process variables etc...
        
     }

  
Comment

PREVIOUS NEXT
Code Example
Php :: laravel get from model 
Php :: clear cache without using composer in laravel 8 
Php :: PDO Prepared Statement php 
Php :: how to loop by index in php 
Php :: datatables 
Php :: laravel mailable from 
Php :: touches in laravel 
Php :: call jquery function in php code 
Php :: Get data from array (from an API) in Laravel 
Php :: what is Laravel Eloquent ORM. 
Php :: php xml parser 
Php :: how to install phpmyadmin on windows 10 
Php :: how check the time of operation in laravel 
Php :: laravel nginx 
Php :: php header content type json 
Php :: Write a php program to perform sum of two numbers 
Php :: php gravity forms display 
Php :: PHP OOP - Destructor 
Php :: check if data inserted in database wordpress plugin 
Php :: php sentense case 
Php :: unique string faker laravel 
Php :: filament make resource 
Php :: call variable from inside a collection laravel 
Php :: php simple sse 
Php :: php change get value in a link 
Php :: php get woocommerce attribute from database 
Php :: wordpress add submenu under custom post type 
Php :: how to use get php with index php with url 
Php :: latavel attach method 
Php :: mysqli connect error 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =