Route Patterns Wildcards

Submitted by doguhan - 3 years ago

Route tanımlanan URI için, Closure aktarılacak değerlerin sınıflandırılması konusundaki desenler...

'(:num)' => '([0-9]+)',
'(:any)' => '([a-zA-Z0-9\.\-_%=]+)',
'(:segment)' => '([^/]+)',
'(:all)' => '(.*)',

//options pass closure value

    '/(:num?)' => '(?:/([0-9]+)',
    '/(:any?)' => '(?:/([a-zA-Z0-9\.\-_%=]+)',
	'/(:segment?)' => '(?:/([^/]+)',
	'/(:all?)' => '(?:/(.*)',

Ads cover the costs of maintaining Laravel-tricks

comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks