Author

Siddharth Shukla

Browsing

Step 1: Install Laravel 6 Project I am going to install a laravel project using composer. composer create-project –prefer-dist laravel/laravel laravel6 Step 2: Going inside of project using the command cd laravel6 Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel6 DB_USERNAME=root DB_PASSWORD=root@123 Step 4: Route Setup Here I am going to create routes to get and post method. now open “routes/web.php” file and put below code.…

Step 1: Install Laravel 6 Project I am going to install a laravel project using composer. composer create-project –prefer-dist laravel/laravel laravel6 Step 2: Going inside of project using the command cd laravel6 Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel6 DB_USERNAME=root DB_PASSWORD=root@123 Step 4: Create employee_images Table and Model also. Here, I have created migration for employee_images using Laravel 6 php artisan command, you can check…

Step 1: Install Laravel Project I am going to install a laravel project using composer. composer create-project –prefer-dist laravel/laravel laravel7datatables Step 2: Going inside of project using the command cd laravel7datatables Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel7datatables DB_USERNAME=root DB_PASSWORD=root@123 I have done local database credentials. Now migrate database php artisan migrate Step 4: Install yajra Package We going to install the yajra/laravel-datatables-oracle package by…

JavaScript is technically scripting language but it does almost everything programing language do. It’s going to be the most popular language for next 5 years or more. JavaScript is the combination of Java, Scheme, and Smalltalk. (see also Node.js Electron, Jibo Robots). Python —— Python is perfect programming language, it is descendant of ABC – ABC (programming language) – Wikipedia Python is a multi-paradigm programming language, that means OOPS and structured programming both supported. Java —- Java…

Add code inside of your controller and make the function this easiest way to make custom messages in methods when you want to validate requests: public function create() { request()->validate([ ‘name’ => ‘required’, ‘description’ => ‘required’ ], [ ‘name.required’ => ‘A name is required’, ‘description.required’ => ‘A description is required’ ]); }

Check if your hosting mod_rewrite is enabled by creating a file phpinfo.php with content.Set the permalink structure Go to Dashboard > Settings > Permalinks and choose “Custom Structure” option and enter in the field: /%postname%/ and click on the Save Changes button. Edit your .htaccess file Copy the following directive into your .htaccess file which is located in the root of your website folder: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$…

First, write your HTML code like this, and don’t forget to add enctype=”multipart/form-data” <form action=”upload.php” method=”post” enctype=”multipart/form-data”> <input type=”file” name=”fileToUpload” id=”fileToUpload”> <input type=”submit” value=”Upload Image” name=”submit”> </form> Then create a file name called upload.php <?php $path = “form/”; $target_file = $path.basename($_FILES[“fileToUpload”][“name”]); $file=$_FILES[‘fileToUpload’][‘name’]; $result = move_uploaded_file($_FILES[‘fileToUpload’][‘tmp_name’],$target_file.$file); if ($result) { echo “file successfully uploaded”; } else { echo “please select your file”; }