<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: devcse</title>
    <description>The latest articles on DEV Community by devcse (@devcse).</description>
    <link>https://dev.to/devcse</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F496664%2F3ec2e8ec-045d-4bc9-a202-bedb37656433.png</url>
      <title>DEV Community: devcse</title>
      <link>https://dev.to/devcse</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/devcse"/>
    <language>en</language>
    <item>
      <title>Set Up React JS application with React-Bootstrap and React-Router-Dom</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Mon, 08 Aug 2022 15:10:25 +0000</pubDate>
      <link>https://dev.to/devcse/set-up-react-js-application-with-react-bootstrap-and-react-router-dom-50lp</link>
      <guid>https://dev.to/devcse/set-up-react-js-application-with-react-bootstrap-and-react-router-dom-50lp</guid>
      <description>&lt;p&gt;Hello,&lt;br&gt;
Today we will create a spring boot CRUD application. In, this example, we are using the MySQL database to store data, to view and manage the data we will use react Js library in the frontend part. For API testing we will use Postman.&lt;/p&gt;

&lt;p&gt;In this article, We will create a react application, Install some packages like react-bootstrap and react-router-dom. Actually, in this example, we will set up the react application.&lt;/p&gt;

&lt;p&gt;Before initializing the react application, ensure you have installed the node.exe application on your local machine.&lt;/p&gt;

&lt;p&gt;Go to a folder, then open the CMD and type:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx create-react-app employeecrud&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://codesnipeet.com/spring-boot-crud-example-with-mysql-react-js-part-5/"&gt;Complete Article &lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Spring Boot CRUD Example with Mysql React JS</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Sat, 06 Aug 2022 09:54:13 +0000</pubDate>
      <link>https://dev.to/devcse/spring-boot-crud-example-with-mysql-react-js-11ei</link>
      <guid>https://dev.to/devcse/spring-boot-crud-example-with-mysql-react-js-11ei</guid>
      <description>&lt;p&gt;Hello,&lt;br&gt;
Today we will create a spring boot CRUD application. In, this example, we are using the MySQL database to store data, to view and manage the data we will use react Js library in the frontend part. For API testing we will use Postman.&lt;/p&gt;

&lt;p&gt;An easy way to understand, from scratch:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://codesnipeet.com/spring-boot-crud-example-with-mysql-react-js-part-1/"&gt;Part 1&lt;/a&gt;&lt;br&gt;
&lt;a href="https://codesnipeet.com/spring-boot-crud-example-with-mysql-react-js-part-2/"&gt;Part 2&lt;/a&gt;&lt;br&gt;
&lt;a href="https://codesnipeet.com/spring-boot-crud-example-with-mysql-react-js-part-3/"&gt;Part 3&lt;/a&gt;&lt;br&gt;
&lt;a href="https://codesnipeet.com/spring-boot-crud-example-with-mysql-react-js-part-4/"&gt;Part 4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More parts will be added soon. Stay tuned.....&lt;/p&gt;

</description>
      <category>react</category>
      <category>java</category>
      <category>springboot</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Build web scraper REST API using JAVA,SPRING BOOT, and JSOUP</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Sun, 27 Feb 2022 07:30:05 +0000</pubDate>
      <link>https://dev.to/devcse/build-web-scraper-rest-api-using-javaspring-boot-and-jsoup-25mi</link>
      <guid>https://dev.to/devcse/build-web-scraper-rest-api-using-javaspring-boot-and-jsoup-25mi</guid>
      <description>&lt;p&gt;Hello, Today we are going to build a web scraper. Although All of you know the term, I just want to tell you shortly what exactly web scraper?&lt;/p&gt;

&lt;p&gt;Web scraping, also known as web harvesting or web data extraction, is a type of data scraping that is used to gather information from websites. Using the Hypertext Transfer Protocol or a web browser, web scraping software can directly access the World Wide Web.&lt;br&gt;
In this project, We are going to use spring boot as a backend service and build a simple UI for the frontend part using HTML and CSS.&lt;/p&gt;

&lt;p&gt;We will use the JSOUP library for extracting data from the websites. JSOUP is a Java library that allows you to interact with real-world HTML. It uses the finest of HTML5 DOM techniques and CSS selectors to create a very convenient API for requesting URLs, extracting, and modifying data.&lt;/p&gt;

&lt;p&gt;I am sharing the original post to build your web scraper from scratch &lt;a href="https://codesnipeet.com/how-to-build-a-web-scraper-in-java/"&gt;live link&lt;/a&gt;&lt;br&gt;
Hope it helps!!!&lt;/p&gt;

</description>
      <category>java</category>
      <category>springboot</category>
      <category>tutorial</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Drag &amp; Drop File Upload in Laravel 8.0 using Dropzone JS</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Mon, 30 Aug 2021 14:14:47 +0000</pubDate>
      <link>https://dev.to/devcse/drag-drop-file-upload-in-laravel-8-0-using-dropzone-js-165f</link>
      <guid>https://dev.to/devcse/drag-drop-file-upload-in-laravel-8-0-using-dropzone-js-165f</guid>
      <description>&lt;p&gt;In this article, I will show you how to drag and drop file in laravel 8.0. Drag and drop in laravel is very simple. In this post, you will learn uploading multiple files just drag and drop using dropzone. You will learn to Drag and drop files upload in laravel.&lt;/p&gt;

&lt;p&gt;Dropzone.js is a jquery plugin, dropzone.js through we can select one by one image and also with preview. After choosing the image from browse, we can see the preview of the image. dropzone.js also provide filters like we can make validation for max upload, a specific image or file extension, etc.Using this dropzone plugin You will learn to Drag and drop files upload in laravel easily.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Add Route&lt;/strong&gt;&lt;br&gt;
We added two routes, first one is for displayinh the page and second one is for uploading the files. lest do it,&lt;/p&gt;

&lt;p&gt;Read Also: &lt;a href="https://codesnipeet.com/google-recaptcha-v3-example-tutorial-in-laravel-8/"&gt;Google Recaptcha V3 Example Tutorial in Laravel 8&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::get('dropzone', [DropzoneController::class, 'dropzone']);

Route::post('dropzone/store', [DropzoneController::class, 'dropzoneStore'])-&amp;gt;name('dropzone.store');

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Create Controller&lt;/strong&gt;&lt;br&gt;
Create DropzoneController controller&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan make:controller DropzoneController

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;app/Http/Controllers/DropzoneController.php&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class DropzoneController extends Controller
{
    public function dropzone()
    {
        return view('dropzone-view');
    }

    public function dropzoneStore(Request $request)
    {
        $image = $request-&amp;gt;file('file');
        $imageName = time().'.'.$image-&amp;gt;extension();
        $image-&amp;gt;move(public_path('images'),$imageName);
        return response()-&amp;gt;json(['success'=&amp;gt;$imageName]);
    }

}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3: Add Blade File&lt;/strong&gt;&lt;br&gt;
READ ALSO: &lt;a href="https://codesnipeet.com/laravel-8-rest-api-authentication-with-sanctum/"&gt;Laravel 8 REST API Authentication with Sanctum&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;

&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;

    &amp;lt;title&amp;gt;Drag &amp;amp; Drop File Upload in Laravel 8 using Dropzone JS&amp;lt;/title&amp;gt;

    &amp;lt;link rel="stylesheet" href="http://demo.itsolutionstuff.com/plugin/bootstrap-3.min.css"&amp;gt;

    &amp;lt;link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.0.1/min/dropzone.min.css" rel="stylesheet"&amp;gt;

    &amp;lt;script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/min/dropzone.min.js"&amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;style&amp;gt;
        .dropzone {
            background-color: #4a5568;
            border-radius: 50px;
            color: #fff;
        }
    &amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;



&amp;lt;div class="container"&amp;gt;

    &amp;lt;div class="row"&amp;gt;

        &amp;lt;div class="col-md-12"&amp;gt;

            &amp;lt;h1&amp;gt;Drag &amp;amp; Drop File Upload in Laravel 8 using Dropzone JS&amp;lt;/h1&amp;gt;



            &amp;lt;form action="{{ route('dropzone.store') }}" method="post" enctype="multipart/form-data" id="image-upload" class="dropzone"&amp;gt;

                @csrf

                &amp;lt;div&amp;gt;


                &amp;lt;/div&amp;gt;

            &amp;lt;/form&amp;gt;

        &amp;lt;/div&amp;gt;

    &amp;lt;/div&amp;gt;

&amp;lt;/div&amp;gt;



&amp;lt;script type="text/javascript"&amp;gt;

    Dropzone.options.imageUpload = {

        maxFilesize         :       1,

        acceptedFiles: ".jpeg,.jpg,.png,.gif"

    };

&amp;lt;/script&amp;gt;



&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>php</category>
      <category>laravel</category>
      <category>codenewbie</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to Read XML File in Laravel 6,7,8</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Thu, 26 Aug 2021 17:14:08 +0000</pubDate>
      <link>https://dev.to/devcse/how-to-read-xml-file-in-laravel-6-7-8-mgm</link>
      <guid>https://dev.to/devcse/how-to-read-xml-file-in-laravel-6-7-8-mgm</guid>
      <description>&lt;p&gt;Let’s have a look at an example of how to read an xml file in Laravel. I’ll show you an example of laravel reading an xml file. We’ll discuss about how to read an xml file in Laravel. In this tutorial, I’ll show you how to read an xml file in Laravel.&lt;/p&gt;

&lt;p&gt;In Laravel 6, Laravel 7, and Laravel 8, you can easily read xml files.&lt;br&gt;
Create Controller&lt;/p&gt;

&lt;p&gt;Now let’s create XMLReaderController:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan make:controller XMLReaderController 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;App\Http\Controllers&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php 

namespace App\Http\Controllers; 

use Illuminate\Http\Request; 

class XMLReaderController extends Controller 
{ 
    /** 
     * Write code on Method 
     * 
     * @return response() 
     */ 
    public function index() 
    { 
        $xmlString = file_get_contents(public_path('put-the-xml-file-path')); 
        $xmlObject = simplexml_load_string($xmlString); 

        $json = json_encode($xmlObject); 
        $phpArray = json_decode($json, true);  

        dd($phpArray); 
    } 
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hope it helps!&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>Laravel image validation example
</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Wed, 21 Jul 2021 16:50:14 +0000</pubDate>
      <link>https://dev.to/devcse/laravel-image-validation-example-4ieo</link>
      <guid>https://dev.to/devcse/laravel-image-validation-example-4ieo</guid>
      <description>&lt;p&gt;Hi artisan, today I will show you how to validate images in your laravel project easily.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$request-&amp;gt;validate([
   'file' =&amp;gt; 'image'
]);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Route : routes/web.php&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::get('form-create','FromController@index');
Route::post('form-store','FromController@store')-&amp;gt;name('form.store');

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Controller : app/Http/Controllers/ImgController.php&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php

namespace App\Http\Controllers;
use Illuminate\Http\Request;

use Illuminate\Support\Facades\Blade;
use App\Models\User;
use App\Models\Post;

class FromController extends Controller
{   

    public function create()
    {
        return view('form');
    }


    public function store(Request $request)
    {
        $request-&amp;gt;validate([
           'file' =&amp;gt; 'image'
        ]);
    }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GET FULL CODE: &lt;a href="https://codesnipeet.com/laravel-image-validation-example/"&gt;Laravel image validation example&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>webdev</category>
      <category>programming</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Laravel 8.0 Image Upload Example
</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Wed, 21 Jul 2021 16:42:24 +0000</pubDate>
      <link>https://dev.to/devcse/laravel-8-0-image-upload-example-ece</link>
      <guid>https://dev.to/devcse/laravel-8-0-image-upload-example-ece</guid>
      <description>&lt;p&gt;Hello artisan,&lt;/p&gt;

&lt;p&gt;How are you? Today I am going to show you how to upload images in your  Laravel project. In this tutorial, you can also upload your image reference to your database also. That means you can upload your image to the Database and also you can fetch images from your directory using DB image name reference.&lt;/p&gt;

&lt;p&gt;Create a Laravel Project first, run this command&lt;br&gt;
composer create-project --prefer-dist laravel/laravel blog&lt;br&gt;
Make databse Connection , create a database in the Mysql database after that go to the .env file and set the values,&lt;/p&gt;

&lt;p&gt;Make Database Connection and add the code to .env file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_crud
DB_USERNAME=root
DB_PASSWORD=

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make your custom route,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;routes/web.php&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::get('/image/upload', [UploadImageController::class, 'imageUpload'])-&amp;gt;name('image.upload.index');
Route::post('/image/upload/store', [UploadImageController::class, 'imageUploadPost'])-&amp;gt;name('image.upload.store');

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GET FULL CODE: &lt;a href="https://codesnipeet.com/laravel-8-0-image-upload-example/"&gt;Laravel 8.0 Image Upload Example&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>programming</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Laravel 8.0 Ajax Form Validation Example
</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Tue, 20 Jul 2021 18:40:10 +0000</pubDate>
      <link>https://dev.to/devcse/laravel-8-0-ajax-form-validation-example-1m75</link>
      <guid>https://dev.to/devcse/laravel-8-0-ajax-form-validation-example-1m75</guid>
      <description>&lt;p&gt;Today we will make ajax form validation, so that we can make our form validation without refreshing web page. so, let’s start…&lt;/p&gt;

&lt;p&gt;Create a Laravel new project, run this command &lt;br&gt;
composer create-project --prefer-dist laravel/laravel blog&lt;br&gt;
Make Database connection&lt;br&gt;
Go to the .env file and set the database name that you create in your MySQL dashboard admin panel&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_ajax_blog
DB_USERNAME=root
DB_PASSWORD=

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Create our custom route&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;routes/web.php&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::get('post/create', [PostController::class, 'postCreateByAjax'])
    -&amp;gt;name('post.validation');
Route::post('post/store', [PostController::class, 'postStoreByAjax'])
    -&amp;gt;name('post.validation.store');

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Create Model&lt;/strong&gt;&lt;br&gt;
we will create Post model, run this command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:model Post&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Models/Post.php&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    use HasFactory;
    protected $fillable = [
        'title',
        'description'
    ];

}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Create Controller&lt;/strong&gt;&lt;br&gt;
we will create controller named PostController, run this command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:controller PostController&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;app/Http/Controllers/PostController.php&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php

namespace App\Http\Controllers;

use App\Models\Post;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class PostController extends Controller
{

    public function postCreateByAjax(){
        return view('ajax.ajax-create');
    }

    public function postStoreByAjax(Request $request){

        $validator = Validator::make($request-&amp;gt;all(), [
            'title' =&amp;gt; 'required',
            'description' =&amp;gt; 'required',
        ]);

        if ($validator-&amp;gt;passes()) {

            Post::create($request-&amp;gt;all()); // it store data to the DB

            return response()-&amp;gt;json(['success'=&amp;gt;'Added new records.']);

        }

        return response()-&amp;gt;json(['error'=&amp;gt;$validator-&amp;gt;errors()]);

    }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Get the full code: &lt;a href="https://codesnipeet.com/laravel-8-0-ajax-form-validation-example/"&gt;Laravel ajax form Validation&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>codenewbie</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Laravel 8.0 Form Validation Example
</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Tue, 20 Jul 2021 18:33:43 +0000</pubDate>
      <link>https://dev.to/devcse/laravel-8-0-form-validation-example-1od5</link>
      <guid>https://dev.to/devcse/laravel-8-0-form-validation-example-1od5</guid>
      <description>&lt;p&gt;Hello Artisan,&lt;/p&gt;

&lt;p&gt;Today we will make form validation strategies to make input data validated.&lt;/p&gt;

&lt;p&gt;Create a Laravel Project first, run this command&lt;br&gt;
composer create-project –prefer-dist laravel/laravel blog&lt;/p&gt;

&lt;p&gt;Make databse Connection , create a database in the Mysql database after that go to the .env file and set the values,&lt;/p&gt;

&lt;p&gt;Make Database Connection&lt;br&gt;
and add the code to .env file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_blog
DB_USERNAME=root
DB_PASSWORD=

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Create your custom route,&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;routes/web.php&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::get('user/create',[UserController::class,'create']);
Route::post('user/store',[UserController::class,'store']);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After creating a brand new laravel project you have already the User model and UserController in your project directory. If not then add&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create Model&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Models/User.php&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php

namespace App\Models;

use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;

class User extends Authenticatable
{
    use HasFactory, Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'email_verified_at' =&amp;gt; 'datetime',
    ];
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Create Controller&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;app/Http/controllers/UserController.php&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;?php

namespace App\Http\Controllers;

use App\Models\User;
use Illuminate\Http\Request;

class UserController extends Controller
{

    public function create(){
        return view('user.create_user');
    }
    public function store(Request $request){

//        dd($request);

        $validatedData = $request-&amp;gt;validate([
            'name' =&amp;gt; 'required',
            'password' =&amp;gt; 'required|min:5',
            'email' =&amp;gt; 'required|email|unique:users'
        ], [
            'name.required' =&amp;gt; 'User Name is required',
            'password.required' =&amp;gt; 'User Password is required'
        ]);

        $validatedData['password'] = bcrypt($validatedData['password']);
        $user = User::create($validatedData);

        return back()-&amp;gt;with('success', 'User created successfully.');

    }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GET FULL CODE: &lt;a href="//htps://codesnipeet.com/laravel-8-0-form-validation-example/"&gt;Laravel Form Validation&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>programming</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Laravel 8.0 CRUD Tutorial Using Mysql Database
</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Tue, 20 Jul 2021 18:28:30 +0000</pubDate>
      <link>https://dev.to/devcse/laravel-8-0-crud-tutorial-using-mysql-database-4ecf</link>
      <guid>https://dev.to/devcse/laravel-8-0-crud-tutorial-using-mysql-database-4ecf</guid>
      <description>&lt;p&gt;Hello Artisan,&lt;/p&gt;

&lt;p&gt;Today we will create a CRUD application in Laravel using Mysql Database. CRUD extends Create, Read, Update, Delete. We performing This operation in our new fresh laravel project. So, let’s start.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create a Laravel Project first, run this command&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;composer create-project --prefer-dist laravel/laravel blog&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After completion the creation of laravel project, lets go…&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Make databse Connection  *&lt;/em&gt;&lt;br&gt;
create a databse in the mysql database after that go to the .env file&lt;/p&gt;

&lt;p&gt;and add the code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_crud
DB_USERNAME=root
DB_PASSWORD=
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set your Databasae name,username and password.&lt;/p&gt;

&lt;p&gt;Now, run this command to migrate&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan migrate&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create Product model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:model Product&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Create migration for products table, run this command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:migration create_products_table --create=products&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;let’s add products table column propertise to the migration file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Schema::create('products', function (Blueprint $table) {
    $table-&amp;gt;id();
    $table-&amp;gt;string('title');
    $table-&amp;gt;text('details');
    $table-&amp;gt;timestamps();
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create Controller, run this command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:controller ProductController --resource&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In web.php add our route, &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;web.php&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\ProductController;
use App\Http\Controllers\UserController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('index');
});

Route::resource('product',ProductController::class);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To see out all route, run this command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan route:list&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Output&lt;/p&gt;

&lt;p&gt;FULL CRUD GET HERE: &lt;a href="https://codesnipeet.com/laravel-8-crud-tutorial-using-mysql-database/"&gt;Link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>Create a new Laravel 8.0 project
</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Tue, 20 Jul 2021 18:21:50 +0000</pubDate>
      <link>https://dev.to/devcse/create-a-new-laravel-8-0-project-17g2</link>
      <guid>https://dev.to/devcse/create-a-new-laravel-8-0-project-17g2</guid>
      <description>&lt;p&gt;Hello Artisan,&lt;/p&gt;

&lt;p&gt;Today we will create a laravel project from scratch. Before that you have to install composer dependency to work with laravael. If you dont have install composer, pleasae read this post and install composer in your local mechine.&lt;/p&gt;

&lt;p&gt;There are two ways to create a laravel project.&lt;/p&gt;

&lt;p&gt;1.Via laravel Instraller &amp;amp;&lt;br&gt;
2.Via laravel Composer&lt;/p&gt;

&lt;p&gt;So, How to create Laravel project.&lt;br&gt;
 We will create both way a laravel project.&lt;/p&gt;

&lt;p&gt;Ensure that you have composer installed in your machine. To check if it there or not by running the below commands:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;composer --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install Laravel Installer by running&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;composer global require laravel/installer&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check is Laravel installer installed or not&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;laravel --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Done! GO forward!&lt;/p&gt;

&lt;p&gt;First Method is to create laravel project laravel new blog&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second Method is  create Laravel project&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;composer create-project --prefer-dist laravel/laravel blog&lt;/code&gt;&lt;br&gt;
In this section create Laravel project by the composer so, after running the above command it’s look like&lt;/p&gt;

&lt;p&gt;After taking some time depending on your internet connection, a fresh Laravel project created successfully.&lt;/p&gt;

&lt;p&gt;And the out put looks like&lt;/p&gt;

&lt;p&gt;Read More: &lt;a href="https://codesnipeet.com/create-a-new-laravel-8-0-project/"&gt;Link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
    </item>
    <item>
      <title>Operators in Java Explained
</title>
      <dc:creator>devcse</dc:creator>
      <pubDate>Tue, 20 Jul 2021 18:09:28 +0000</pubDate>
      <link>https://dev.to/devcse/operators-in-java-explained-5dfn</link>
      <guid>https://dev.to/devcse/operators-in-java-explained-5dfn</guid>
      <description>&lt;p&gt;Operator are those who performs an action, for example + is an arithmetic operator that perform addition. They are various types of operators are available in java programming language.&lt;/p&gt;

&lt;p&gt;Contents [show]&lt;/p&gt;

&lt;p&gt;Types of Operator in Java&lt;br&gt;
Arithmetic Operators&lt;br&gt;
Assignment Operators&lt;br&gt;
Auto-increment and Auto-decrement Operators&lt;br&gt;
Logical Operators&lt;br&gt;
Comparison (relational) operators&lt;br&gt;
Arithmetic Operators&lt;br&gt;
arithmetic operators are: +, -, *, /, %&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;is used for addition&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;– is used for substraction&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;is for multiplication&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;/ is used for division&lt;/p&gt;

&lt;p&gt;% is used for find reminder, % is called modulus(modulo) operator&lt;/p&gt;

&lt;p&gt;Let’s take an example:&lt;/p&gt;

&lt;p&gt;package com.sync;&lt;/p&gt;

&lt;p&gt;public class OperatorsDemo {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static void main(String[] args) {

    int num1 = 300;
    int num2 = 30;

    System.out.println("num1 + num2: " + (num1 + num2) ); // addition
    System.out.println("num1 - num2: " + (num1 - num2) ); // subtraction
    System.out.println("num1 * num2: " + (num1 * num2) ); // multiplication
    System.out.println("num1 / num2: " + (num1 / num2) ); // division
    System.out.println("num1 % num2: " + (num1 % num2) ); // modulo
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;/* output: &lt;/p&gt;

&lt;p&gt;num1 + num2: 330&lt;br&gt;
 num1 - num2: 270&lt;br&gt;
 num1 * num2: 9000&lt;br&gt;
 num1 / num2: 10&lt;br&gt;
 num1 % num2: 0 &lt;/p&gt;

&lt;p&gt;*/&lt;br&gt;
Assignment Operators&lt;br&gt;
Assignments operators in java are: =, +=, -=, *=, /=, %=&lt;/p&gt;

&lt;p&gt;num2 = num1 would assign value of variable num1 to the variable num2.&lt;br&gt;
num2+=num1 is equal to num2 = num2+num1&lt;br&gt;
num2-=num1 is equal to num2 = num2-num1&lt;br&gt;
num2*=num1 is equal to num2 = num2*num1&lt;br&gt;
num2/=num1 is equal to num2 = num2/num1&lt;br&gt;
num2%=num1 is equal to num2 = num2%num1&lt;br&gt;
So, let’s take an example:&lt;/p&gt;

&lt;p&gt;package com.sync;&lt;/p&gt;

&lt;p&gt;public class OperatorsDemo {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static void main(String[] args) {

    int num1 = 10;
    int num2 = 20;

    num2 = num1;
    System.out.println("= Output: "+num2);

    num2 += num1;
    System.out.println("+= Output: "+num2);

    num2 -= num1;
    System.out.println("-= Output: "+num2);

    num2 *= num1;
    System.out.println("*= Output: "+num2);

    num2 /= num1;
    System.out.println("/= Output: "+num2);

    num2 %= num1;
    System.out.println("%= Output: "+num2);

}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
/* output:&lt;/p&gt;

&lt;p&gt;= Output: 10&lt;br&gt;
 += Output: 20 &lt;br&gt;
 -= Output: 10&lt;br&gt;
 *= Output: 100&lt;br&gt;
 /= Output: 10&lt;br&gt;
 %= Output: 0&lt;/p&gt;

&lt;p&gt;*/&lt;/p&gt;

&lt;p&gt;Read More: &lt;a href="https://codesnipeet.com/operators-in-java-explained/"&gt;https://codesnipeet.com/operators-in-java-explained/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>webdev</category>
      <category>webpack</category>
    </item>
  </channel>
</rss>
