WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Limiting routing parameters for alphabets only in Laravel | Loop and Break

Limiting routing parameters for alphabets only in Laravel

We may use Regular Expression [[A-Za-z]+]+ to accept and parse out routing URL for alphabets only.

<?php

/*
 |--------------------------------------------------------------------------
 | Application Routes
 |--------------------------------------------------------------------------
 |
 | Here is where you can register all of the routes for an application.
 | It's a breeze. Simply tell Laravel the URIs it should respond to
 | and give it the controller to call when that URI is requested.
 |
 */

// will return 'Hello project root' on browser request /laravel/public
Route::get('/', function()
{
	return "Hello project root";
});

Route::get('person/{id}', function($id)
{
	return "Person : " . $id; 
})
->where('id', '[A-Za-z]+'); // using regular expression

Output

URL : laravel/public/person/aaaBB
Output : Person : aaaBB

Share

You may also like...