Methods Laravel Get link Facebook X Pinterest Email Other Apps July 28, 2020 1. To use Dynamic Slug Route::get('{slug}', 'IndexController@blog_details');Route::get('{slug}', 'IndexController@news_details');Link: {{ URL::to(''.$new->slug )}}1. Fetch first/last entry in the table$video_news = App\News::oldest()->first();$video_news = App\News::latest()->first(); Get link Facebook X Pinterest Email Other Apps Comments
Image Upload PHP Core or OOPs September 02, 2020 'jobseeker_photo' is the name of the input $file = $FILES['jobseeker_photo']; $fileName = $_FILES['jobseeker_photo']['name']; $fileTmpName = $_FILES['jobseeker_photo']['tmp_name']; $fileSize = $_FILES['jobseeker_photo']['size']; $fileError = $_FILES['jobseeker_photo']['error']; $fileType = $_FILES['jobseeker_photo']['type']; $fileExt = explode('.', $fileName); $fileActualExt = strtolower(end($fileExt)); $allowed = array('jpg', 'jpeg', 'png'); if(in_array($fileActualExt, $allowed)) { if($fileError === 0){ ... Read more
Xampp Customization January 02, 2021 Change Target Project Directory from httpd.conf File Path: C:\xampp\apache\conf\httpd.conf Change Target Project Directory from httpd.conf File Path: C:\xampp\php\php.ini post_max_size, upload_max_filesize, max_exexution_time, max_input_time, memory_limit, max_allowed_packet Read more
Comments
Post a Comment