If you struggle to get the correct url for your share button here is a fix.
I assume here you know how to get the button up and running if you dont please just go to https://developers.facebook.com/docs/plugins/share-button and follow instructions
$table = DB::select("SELECT AUTO_INCREMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'databaseName' AND TABLE_NAME = 'tableName'"); | |
if (!empty($table)) { echo $table[0]->AUTO_INCREMENT; } |
$request->validate([ | |
'name' => 'required', | |
], | |
[ | |
'name.required' => 'Custom message for validation', | |
] | |
); |