mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 06:26:52 +01:00 
			
		
		
		
	 82409f2fba
			
		
	
	
		82409f2fba
		
			
		
	
	
	
	
		
			
			* Convert route options to fluent methods Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods. * Slim `lang` files * Shift core files * Validate via object directly within Controllers * Use `Gate` facade for controller authorization * Dispatch jobs directly * Remove base controller inheritance * Default config files In an effort to make upgrading the constantly changing config files easier, Shift defaulted them and merged your true customizations - where ENV variables may not be used. * Set new `ENV` variables * Add new Laravel `composer run dev` script * Add `storage/app/private` folder * Bump Composer dependencies * Convert `$casts` property to method * Adopt Laravel type hints * Shift cleanup * Apply suggestions from code review Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> * Add old key as backup * Update composer * Remove extra line * Update this --------- Co-authored-by: Shift <shift@laravelshift.com> Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			740 B
		
	
	
	
		
			ApacheConf
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			740 B
		
	
	
	
		
			ApacheConf
		
	
	
	
	
	
| <IfModule mod_rewrite.c>
 | |
|     <IfModule mod_negotiation.c>
 | |
|         Options -MultiViews -Indexes
 | |
|     </IfModule>
 | |
| 
 | |
|     RewriteEngine On
 | |
| 
 | |
|     # Handle Authorization Header
 | |
|     RewriteCond %{HTTP:Authorization} .
 | |
|     RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
 | |
| 
 | |
|     # Handle X-XSRF-Token Header
 | |
|     RewriteCond %{HTTP:x-xsrf-token} .
 | |
|     RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
 | |
| 
 | |
|     # Redirect Trailing Slashes If Not A Folder...
 | |
|     RewriteCond %{REQUEST_FILENAME} !-d
 | |
|     RewriteCond %{REQUEST_URI} (.+)/$
 | |
|     RewriteRule ^ %1 [L,R=301]
 | |
| 
 | |
|     # Send Requests To Front Controller...
 | |
|     RewriteCond %{REQUEST_FILENAME} !-d
 | |
|     RewriteCond %{REQUEST_FILENAME} !-f
 | |
|     RewriteRule ^ index.php [L]
 | |
| </IfModule>
 |