{"id":1107,"date":"2023-09-30T13:18:43","date_gmt":"2023-09-30T13:18:43","guid":{"rendered":"https:\/\/www.devopsfreelancer.com\/blog\/?p=1107"},"modified":"2023-09-30T13:18:45","modified_gmt":"2023-09-30T13:18:45","slug":"laravel-9-crud-example-tutorial-for-beginners","status":"publish","type":"post","link":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/","title":{"rendered":"Laravel 9 CRUD Example Tutorial for Beginners"},"content":{"rendered":"\n<p>In this tutorial i&#8217;m going to learn how to do crud operation in laravel for beginners so follow this tutorial i have descibed in very easy way.<\/p>\n\n\n\n<p>Use the following steps to create a crud operation app in laravel 9&nbsp;as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Step 1 \u2013 Download Laravel 9&nbsp;App<\/li>\n\n\n\n<li>Step 2 \u2013 Setup Database with App<\/li>\n\n\n\n<li>Step 3 \u2013 Create Company Model &amp; Migration For CRUD App<\/li>\n\n\n\n<li>Step 4 \u2013 Create Company&nbsp;Controller By Artisan Command<\/li>\n\n\n\n<li>Step 5 \u2013 Create Routes<\/li>\n\n\n\n<li>Step 6 \u2013 Create Blade Views File<ul><li>Make Directory Name Companies<\/li><li>index.blade.php<\/li><\/ul>\n<ul class=\"wp-block-list\">\n<li>create.blade.php<\/li>\n\n\n\n<li>edit.blade.php<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Step 7 \u2013 Run Laravel CRUD App on Development Server<\/li>\n<\/ul>\n\n\n\n<p><strong>Step 1 \u2013 Download Laravel 9\u00a0App<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer create-project --prefer-dist laravel\/laravel:^9.0 laravel-9-crud\r<\/code><\/pre>\n\n\n\n<p><strong>Step 2 \u2013 Setup Database with App<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DB_CONNECTION=mysql\r\nDB_HOST=127.0.0.1\r\nDB_PORT=3306\r\nDB_DATABASE=database-name\r\nDB_USERNAME=database-user-name\r\nDB_PASSWORD=database-password<\/code><\/pre>\n\n\n\n<p><strong>Step 3 \u2013 Create Company Model &amp; Migration For CRUD App<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:model Company -m<\/code><\/pre>\n\n\n\n<p>Next go to Company model and paste below code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public function up()\r\n{\r\n    Schema::create('companies', function (Blueprint $table) {\r\n        $table->id();\r\n        $table->string('name');\r\n        $table->string('email');\r\n        $table->string('address');\r\n        $table->timestamps();\r\n    });\r\n}<\/code><\/pre>\n\n\n\n<p><strong>app\/Models\/Company.php<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\r\n\r\nnamespace App\\Models;\r\n\r\nuse Illuminate\\Database\\Eloquent\\Factories\\HasFactory;\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\n\r\nclass Company extends Model\r\n{\r\n    use HasFactory;\r\n\r\n    protected $fillable = &#91;'name', 'email', 'address'];\r\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate<\/code><\/pre>\n\n\n\n<p><strong>Step 4 \u2013 Create Company\u00a0Controller By Artisan Command<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:controller CompanyController\r<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\nuse App\\Models\\Company;\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass CompanyController extends Controller\r\n{\r\n    \/**\r\n    * Display a listing of the resource.\r\n    *\r\n    * @return \\Illuminate\\Http\\Response\r\n    *\/\r\n    public function index()\r\n    {\r\n        $companies = Company::orderBy('id','desc')->paginate(5);\r\n        return view('companies.index', compact('companies'));\r\n    }\r\n\r\n    \/**\r\n    * Show the form for creating a new resource.\r\n    *\r\n    * @return \\Illuminate\\Http\\Response\r\n    *\/\r\n    public function create()\r\n    {\r\n        return view('companies.create');\r\n    }\r\n\r\n    \/**\r\n    * Store a newly created resource in storage.\r\n    *\r\n    * @param  \\Illuminate\\Http\\Request  $request\r\n    * @return \\Illuminate\\Http\\Response\r\n    *\/\r\n    public function store(Request $request)\r\n    {\r\n        $request->validate(&#91;\r\n            'name' => 'required',\r\n            'email' => 'required',\r\n            'address' => 'required',\r\n        ]);\r\n        \r\n        Company::create($request->post());\r\n\r\n        return redirect()->route('companies.index')->with('success','Company has been created successfully.');\r\n    }\r\n\r\n    \/**\r\n    * Display the specified resource.\r\n    *\r\n    * @param  \\App\\company  $company\r\n    * @return \\Illuminate\\Http\\Response\r\n    *\/\r\n    public function show(Company $company)\r\n    {\r\n        return view('companies.show',compact('company'));\r\n    }\r\n\r\n    \/**\r\n    * Show the form for editing the specified resource.\r\n    *\r\n    * @param  \\App\\Company  $company\r\n    * @return \\Illuminate\\Http\\Response\r\n    *\/\r\n    public function edit(Company $company)\r\n    {\r\n        return view('companies.edit',compact('company'));\r\n    }\r\n\r\n    \/**\r\n    * Update the specified resource in storage.\r\n    *\r\n    * @param  \\Illuminate\\Http\\Request  $request\r\n    * @param  \\App\\company  $company\r\n    * @return \\Illuminate\\Http\\Response\r\n    *\/\r\n    public function update(Request $request, Company $company)\r\n    {\r\n        $request->validate(&#91;\r\n            'name' => 'required',\r\n            'email' => 'required',\r\n            'address' => 'required',\r\n        ]);\r\n        \r\n        $company->fill($request->post())->save();\r\n\r\n        return redirect()->route('companies.index')->with('success','Company Has Been updated successfully');\r\n    }\r\n\r\n    \/**\r\n    * Remove the specified resource from storage.\r\n    *\r\n    * @param  \\App\\Company  $company\r\n    * @return \\Illuminate\\Http\\Response\r\n    *\/\r\n    public function destroy(Company $company)\r\n    {\r\n        $company->delete();\r\n        return redirect()->route('companies.index')->with('success','Company has been deleted successfully');\r\n    }\r\n}<\/code><\/pre>\n\n\n\n<p><strong>Step 5 \u2013 Create Routes<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use App\\Http\\Controllers\\CompanyController;\r\n \r\nRoute::resource('companies', CompanyController::class);<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6 \u2013 Create Blade Views File<\/h3>\n\n\n\n<p>Create the directory and some blade view, see the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Make Directory Name Companies<\/li>\n\n\n\n<li>index.blade.php<\/li>\n\n\n\n<li>create.blade.php<\/li>\n\n\n\n<li>edit.blade.php<\/li>\n<\/ul>\n\n\n\n<p>Create directory name&nbsp;<strong>companies<\/strong>&nbsp;inside the&nbsp;<strong>resources\/views&nbsp;<\/strong>directory.<\/p>\n\n\n\n<p>Note that, create index.blade.php, create.blade.php, and edit.blade.php inside the companies directory. And update the following code into the following files:<\/p>\n\n\n\n<p><strong>index.blade.php<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\r\n&lt;html lang=\"en\">\r\n&lt;head>\r\n    &lt;meta charset=\"UTF-8\">\r\n    &lt;title>Laravel 9 CRUD Tutorial Example&lt;\/title>\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.2\/css\/bootstrap.min.css\" >\r\n&lt;\/head>\r\n&lt;body>\r\n    &lt;div class=\"container mt-2\">\r\n        &lt;div class=\"row\">\r\n            &lt;div class=\"col-lg-12 margin-tb\">\r\n                &lt;div class=\"pull-left\">\r\n                    &lt;h2>Laravel 9 CRUD Example Tutorial&lt;\/h2>\r\n                &lt;\/div>\r\n                &lt;div class=\"pull-right mb-2\">\r\n                    &lt;a class=\"btn btn-success\" href=\"{{ route('companies.create') }}\"> Create Company&lt;\/a>\r\n                &lt;\/div>\r\n            &lt;\/div>\r\n        &lt;\/div>\r\n        @if ($message = Session::get('success'))\r\n            &lt;div class=\"alert alert-success\">\r\n                &lt;p>{{ $message }}&lt;\/p>\r\n            &lt;\/div>\r\n        @endif\r\n        &lt;table class=\"table table-bordered\">\r\n            &lt;thead>\r\n                &lt;tr>\r\n                    &lt;th>S.No&lt;\/th>\r\n                    &lt;th>Company Name&lt;\/th>\r\n                    &lt;th>Company Email&lt;\/th>\r\n                    &lt;th>Company Address&lt;\/th>\r\n                    &lt;th width=\"280px\">Action&lt;\/th>\r\n                &lt;\/tr>\r\n            &lt;\/thead>\r\n            &lt;tbody>\r\n                @foreach ($companies as $company)\r\n                    &lt;tr>\r\n                        &lt;td>{{ $company->id }}&lt;\/td>\r\n                        &lt;td>{{ $company->name }}&lt;\/td>\r\n                        &lt;td>{{ $company->email }}&lt;\/td>\r\n                        &lt;td>{{ $company->address }}&lt;\/td>\r\n                        &lt;td>\r\n                            &lt;form action=\"{{ route('companies.destroy',$company->id) }}\" method=\"Post\">\r\n                                &lt;a class=\"btn btn-primary\" href=\"{{ route('companies.edit',$company->id) }}\">Edit&lt;\/a>\r\n                                @csrf\r\n                                @method('DELETE')\r\n                                &lt;button type=\"submit\" class=\"btn btn-danger\">Delete&lt;\/button>\r\n                            &lt;\/form>\r\n                        &lt;\/td>\r\n                    &lt;\/tr>\r\n                    @endforeach\r\n            &lt;\/tbody>\r\n        &lt;\/table>\r\n        {!! $companies->links() !!}\r\n    &lt;\/div>\r\n&lt;\/body>\r\n&lt;\/html><\/code><\/pre>\n\n\n\n<p><strong>create.blade.php:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\r\n&lt;html lang=\"en\">\r\n\r\n&lt;head>\r\n    &lt;meta charset=\"UTF-8\">\r\n    &lt;title>Add Company Form - Laravel 9 CRUD&lt;\/title>\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.2\/css\/bootstrap.min.css\">\r\n&lt;\/head>\r\n\r\n&lt;body>\r\n    &lt;div class=\"container mt-2\">\r\n        &lt;div class=\"row\">\r\n            &lt;div class=\"col-lg-12 margin-tb\">\r\n                &lt;div class=\"pull-left mb-2\">\r\n                    &lt;h2>Add Company&lt;\/h2>\r\n                &lt;\/div>\r\n                &lt;div class=\"pull-right\">\r\n                    &lt;a class=\"btn btn-primary\" href=\"{{ route('companies.index') }}\"> Back&lt;\/a>\r\n                &lt;\/div>\r\n            &lt;\/div>\r\n        &lt;\/div>\r\n        @if(session('status'))\r\n        &lt;div class=\"alert alert-success mb-1 mt-1\">\r\n            {{ session('status') }}\r\n        &lt;\/div>\r\n        @endif\r\n        &lt;form action=\"{{ route('companies.store') }}\" method=\"POST\" enctype=\"multipart\/form-data\">\r\n            @csrf\r\n            &lt;div class=\"row\">\r\n                &lt;div class=\"col-xs-12 col-sm-12 col-md-12\">\r\n                    &lt;div class=\"form-group\">\r\n                        &lt;strong>Company Name:&lt;\/strong>\r\n                        &lt;input type=\"text\" name=\"name\" class=\"form-control\" placeholder=\"Company Name\">\r\n                        @error('name')\r\n                        &lt;div class=\"alert alert-danger mt-1 mb-1\">{{ $message }}&lt;\/div>\r\n                        @enderror\r\n                    &lt;\/div>\r\n                &lt;\/div>\r\n                &lt;div class=\"col-xs-12 col-sm-12 col-md-12\">\r\n                    &lt;div class=\"form-group\">\r\n                        &lt;strong>Company Email:&lt;\/strong>\r\n                        &lt;input type=\"email\" name=\"email\" class=\"form-control\" placeholder=\"Company Email\">\r\n                        @error('email')\r\n                        &lt;div class=\"alert alert-danger mt-1 mb-1\">{{ $message }}&lt;\/div>\r\n                        @enderror\r\n                    &lt;\/div>\r\n                &lt;\/div>\r\n                &lt;div class=\"col-xs-12 col-sm-12 col-md-12\">\r\n                    &lt;div class=\"form-group\">\r\n                        &lt;strong>Company Address:&lt;\/strong>\r\n                        &lt;input type=\"text\" name=\"address\" class=\"form-control\" placeholder=\"Company Address\">\r\n                        @error('address')\r\n                        &lt;div class=\"alert alert-danger mt-1 mb-1\">{{ $message }}&lt;\/div>\r\n                        @enderror\r\n                    &lt;\/div>\r\n                &lt;\/div>\r\n                &lt;button type=\"submit\" class=\"btn btn-primary ml-3\">Submit&lt;\/button>\r\n            &lt;\/div>\r\n        &lt;\/form>\r\n    &lt;\/div>\r\n&lt;\/body>\r\n\r\n&lt;\/html><\/code><\/pre>\n\n\n\n<p><strong>edit.blade.php<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\r\n&lt;html lang=\"en\">\r\n\r\n&lt;head>\r\n    &lt;meta charset=\"UTF-8\">\r\n    &lt;title>Edit Company Form - Laravel 9 CRUD Tutorial&lt;\/title>\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.2\/css\/bootstrap.min.css\">\r\n&lt;\/head>\r\n\r\n&lt;body>\r\n    &lt;div class=\"container mt-2\">\r\n        &lt;div class=\"row\">\r\n            &lt;div class=\"col-lg-12 margin-tb\">\r\n                &lt;div class=\"pull-left\">\r\n                    &lt;h2>Edit Company&lt;\/h2>\r\n                &lt;\/div>\r\n                &lt;div class=\"pull-right\">\r\n                    &lt;a class=\"btn btn-primary\" href=\"{{ route('companies.index') }}\" enctype=\"multipart\/form-data\">\r\n                        Back&lt;\/a>\r\n                &lt;\/div>\r\n            &lt;\/div>\r\n        &lt;\/div>\r\n        @if(session('status'))\r\n        &lt;div class=\"alert alert-success mb-1 mt-1\">\r\n            {{ session('status') }}\r\n        &lt;\/div>\r\n        @endif\r\n        &lt;form action=\"{{ route('companies.update',$company->id) }}\" method=\"POST\" enctype=\"multipart\/form-data\">\r\n            @csrf\r\n            @method('PUT')\r\n            &lt;div class=\"row\">\r\n                &lt;div class=\"col-xs-12 col-sm-12 col-md-12\">\r\n                    &lt;div class=\"form-group\">\r\n                        &lt;strong>Company Name:&lt;\/strong>\r\n                        &lt;input type=\"text\" name=\"name\" value=\"{{ $company->name }}\" class=\"form-control\"\r\n                            placeholder=\"Company name\">\r\n                        @error('name')\r\n                        &lt;div class=\"alert alert-danger mt-1 mb-1\">{{ $message }}&lt;\/div>\r\n                        @enderror\r\n                    &lt;\/div>\r\n                &lt;\/div>\r\n                &lt;div class=\"col-xs-12 col-sm-12 col-md-12\">\r\n                    &lt;div class=\"form-group\">\r\n                        &lt;strong>Company Email:&lt;\/strong>\r\n                        &lt;input type=\"email\" name=\"email\" class=\"form-control\" placeholder=\"Company Email\"\r\n                            value=\"{{ $company->email }}\">\r\n                        @error('email')\r\n                        &lt;div class=\"alert alert-danger mt-1 mb-1\">{{ $message }}&lt;\/div>\r\n                        @enderror\r\n                    &lt;\/div>\r\n                &lt;\/div>\r\n                &lt;div class=\"col-xs-12 col-sm-12 col-md-12\">\r\n                    &lt;div class=\"form-group\">\r\n                        &lt;strong>Company Address:&lt;\/strong>\r\n                        &lt;input type=\"text\" name=\"address\" value=\"{{ $company->address }}\" class=\"form-control\"\r\n                            placeholder=\"Company Address\">\r\n                        @error('address')\r\n                        &lt;div class=\"alert alert-danger mt-1 mb-1\">{{ $message }}&lt;\/div>\r\n                        @enderror\r\n                    &lt;\/div>\r\n                &lt;\/div>\r\n                &lt;button type=\"submit\" class=\"btn btn-primary ml-3\">Submit&lt;\/button>\r\n            &lt;\/div>\r\n        &lt;\/form>\r\n    &lt;\/div>\r\n&lt;\/body>\r\n\r\n&lt;\/html><\/code><\/pre>\n\n\n\n<p><strong>Step 7 \u2013 Run Development Server<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan serve\r<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;127.0.0.1:8000\/companies<\/code><\/pre>\n\n\n\n<p><strong>Thank you<\/strong>&nbsp;for reading this blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial i&#8217;m going to learn how to do crud operation in laravel for beginners so follow this tutorial i have descibed in very easy way&#8230;. <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[455,4,3,456],"class_list":["post-1107","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-crud-operation","tag-crud-operation-in-laravel","tag-laravel","tag-php-crud-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Laravel 9 CRUD Example Tutorial for Beginners - DevOps Freelancer<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Laravel 9 CRUD Example Tutorial for Beginners - DevOps Freelancer\" \/>\n<meta property=\"og:description\" content=\"In this tutorial i&#8217;m going to learn how to do crud operation in laravel for beginners so follow this tutorial i have descibed in very easy way....\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps Freelancer\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/amitsthakurs\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-30T13:18:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-30T13:18:45+00:00\" \/>\n<meta name=\"author\" content=\"Amit Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/amits_thakurs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amit Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/laravel-9-crud-example-tutorial-for-beginners\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/laravel-9-crud-example-tutorial-for-beginners\\\/\"},\"author\":{\"name\":\"Amit Kumar\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"headline\":\"Laravel 9 CRUD Example Tutorial for Beginners\",\"datePublished\":\"2023-09-30T13:18:43+00:00\",\"dateModified\":\"2023-09-30T13:18:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/laravel-9-crud-example-tutorial-for-beginners\\\/\"},\"wordCount\":233,\"commentCount\":0,\"keywords\":[\"crud-operation\",\"crud-operation-in-laravel\",\"laravel\",\"php-crud\"],\"articleSection\":[\"Laravel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/laravel-9-crud-example-tutorial-for-beginners\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/laravel-9-crud-example-tutorial-for-beginners\\\/\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/laravel-9-crud-example-tutorial-for-beginners\\\/\",\"name\":\"Laravel 9 CRUD Example Tutorial for Beginners - DevOps Freelancer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#website\"},\"datePublished\":\"2023-09-30T13:18:43+00:00\",\"dateModified\":\"2023-09-30T13:18:45+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/laravel-9-crud-example-tutorial-for-beginners\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/laravel-9-crud-example-tutorial-for-beginners\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/laravel-9-crud-example-tutorial-for-beginners\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Laravel 9 CRUD Example Tutorial for Beginners\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/\",\"name\":\"DevOps Freelancer\",\"description\":\"We provide DevOps | SRE | DevSecOps | MLOps Freelancing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\",\"name\":\"Amit Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"caption\":\"Amit Kumar\"},\"description\":\"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\\\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/amitsthakurs\\\/\",\"https:\\\/\\\/www.instagram.com\\\/amits_thakurs\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/amits-thakurs\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/amits_thakurs\"],\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/author\\\/amit\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Laravel 9 CRUD Example Tutorial for Beginners - DevOps Freelancer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/","og_locale":"en_US","og_type":"article","og_title":"Laravel 9 CRUD Example Tutorial for Beginners - DevOps Freelancer","og_description":"In this tutorial i&#8217;m going to learn how to do crud operation in laravel for beginners so follow this tutorial i have descibed in very easy way....","og_url":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/","og_site_name":"DevOps Freelancer","article_author":"https:\/\/www.facebook.com\/amitsthakurs\/","article_published_time":"2023-09-30T13:18:43+00:00","article_modified_time":"2023-09-30T13:18:45+00:00","author":"Amit Kumar","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/amits_thakurs","twitter_misc":{"Written by":"Amit Kumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/#article","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/"},"author":{"name":"Amit Kumar","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"headline":"Laravel 9 CRUD Example Tutorial for Beginners","datePublished":"2023-09-30T13:18:43+00:00","dateModified":"2023-09-30T13:18:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/"},"wordCount":233,"commentCount":0,"keywords":["crud-operation","crud-operation-in-laravel","laravel","php-crud"],"articleSection":["Laravel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/","url":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/","name":"Laravel 9 CRUD Example Tutorial for Beginners - DevOps Freelancer","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website"},"datePublished":"2023-09-30T13:18:43+00:00","dateModified":"2023-09-30T13:18:45+00:00","author":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"breadcrumb":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopsfreelancer.com\/blog\/laravel-9-crud-example-tutorial-for-beginners\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopsfreelancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Laravel 9 CRUD Example Tutorial for Beginners"}]},{"@type":"WebSite","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website","url":"https:\/\/www.devopsfreelancer.com\/blog\/","name":"DevOps Freelancer","description":"We provide DevOps | SRE | DevSecOps | MLOps Freelancing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopsfreelancer.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b","name":"Amit Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","caption":"Amit Kumar"},"description":"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.","sameAs":["https:\/\/www.facebook.com\/amitsthakurs\/","https:\/\/www.instagram.com\/amits_thakurs\/","https:\/\/www.linkedin.com\/in\/amits-thakurs\/","https:\/\/x.com\/https:\/\/twitter.com\/amits_thakurs"],"url":"https:\/\/www.devopsfreelancer.com\/blog\/author\/amit\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=1107"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1107\/revisions"}],"predecessor-version":[{"id":1108,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1107\/revisions\/1108"}],"wp:attachment":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=1107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=1107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=1107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}