Search
 
SCRIPT & CODE EXAMPLE
 

PHP

types of controller in laravel

-types of controller:
	-basic controller
		-php artisan make:controller basicController
		-Route: Route::get('about',[basicController::class,'about']);
	-single action controller	(handle single action)
		public function __invoke(){//inbuilt}
		-php artisan make:controller singleActionController --invokable
		-Route::get('course',singleActionController::class); //it will invoke only one function
	-resource controller (CRUD functions)
		-Route::resource('photo',photoController::class);  //invoke index function
			
Comment

PREVIOUS NEXT
Code Example
Php :: laravel get image extension 
Php :: laravel csrf token off 
Php :: search function using php for database entries 
Php :: PHP OOP - Classes and Objects 
Php :: compare two arrays and return the difference php 
Php :: paginate relationship laravel7 
Php :: php color generator 
Php :: javascript date to php date 
Php :: number_format reverse php 
Php :: foreach in php 
Php :: laravel where json contains 
Php :: unlink is a directory laravel 
Php :: laravel get single column value 
Php :: Fibonacci Series Program. in php 
Php :: PDOException::("could not find driver") windows 
Php :: php variable in string 
Php :: wp get tagline 
Php :: php numberformatter currency without symbol 
Php :: genrate file name in php 
Php :: php login google api 
Php :: delete route method in laravel 
Php :: php convert to boolean 
Php :: phpspreadsheet set cell by column and row 
Php :: laravel assets 
Php :: laravel htaccess 
Php :: Class "AppHttpControllersAdminController" not found in laravel 8 
Php :: php even odd program 
Php :: laravel checking if a record exists 
Php :: laravel select selected 
Php :: PHP is_array() Function 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =