{"id":1602,"date":"2024-01-20T06:36:05","date_gmt":"2024-01-20T06:36:05","guid":{"rendered":"https:\/\/www.devopsfreelancer.com\/blog\/?p=1602"},"modified":"2024-02-05T07:11:26","modified_gmt":"2024-02-05T07:11:26","slug":"how-to-create-delete-command-in-laravel","status":"publish","type":"post","link":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/","title":{"rendered":"How to Create Delete Command in Laravel ?"},"content":{"rendered":"\n<p>Creating a custom delete command in Laravel involves defining a new Artisan command class, specifying its signature, description, and implementing the logic to delete records based on your requirements. Here&#8217;s a step-by-step guide with explanations:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Benefits of Using this Delete Command <\/h2>\n\n\n\n<p>Creating a custom delete command in Laravel can offer several benefits, depending on the specific requirements and use cases of your application. Here are some potential benefits:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Automation of Cleanup Tasks:<\/strong>\n<ul class=\"wp-block-list\">\n<li>The delete command allows you to automate cleanup tasks by regularly removing records from your database that meet certain criteria.<\/li>\n\n\n\n<li>This is particularly useful for removing outdated or unnecessary data, such as log entries, temporary records, or expired user sessions.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Scheduled Data Maintenance:<\/strong>\n<ul class=\"wp-block-list\">\n<li>By integrating the delete command into Laravel&#8217;s task scheduler, you can schedule it to run at specific intervals (e.g., daily, weekly, or monthly).<\/li>\n\n\n\n<li>Scheduled data maintenance ensures that your database stays organized and optimized over time.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Improved Performance:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Regularly deleting unnecessary records can help maintain optimal database performance by preventing the accumulation of large amounts of data.<\/li>\n\n\n\n<li>Smaller, well-maintained databases generally perform better in terms of query speed and resource utilization.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Resource Efficiency:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Cleaning up unnecessary data contributes to resource efficiency by reducing the storage space required for your database.<\/li>\n\n\n\n<li>Smaller databases are easier to manage and may result in lower hosting costs.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Data Privacy and Compliance:<\/strong>\n<ul class=\"wp-block-list\">\n<li>For applications handling sensitive or personal data, the delete command can assist in complying with data privacy regulations.<\/li>\n\n\n\n<li>Removing outdated or unnecessary user data helps maintain compliance with data protection laws.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Database Consistency:<\/strong>\n<ul class=\"wp-block-list\">\n<li>The delete command helps maintain database consistency by removing records that are no longer relevant or valid.<\/li>\n\n\n\n<li>Consistent databases contribute to the overall reliability and integrity of your application.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p><strong>Create command<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:command ClearDataCommand<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"420\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17-1024x420.png\" alt=\"\" class=\"wp-image-1603\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17-1024x420.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17-300x123.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17-768x315.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17.png 1314w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>Next to go to controller and put below code <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>public function clearData()\n    {\n        Log::info('all delete section me hai');\n        $data = &#91;];\n        $delteall_user = UserCount::truncate();\n        $AddProfileGetting = AddProfileCount::truncate();\n        $deleteOrgs = Userorganisation::truncate();\n        $deleteOrganisations = Organisation::truncate();\n        $delte_projects = Projects::truncate();\n        $AddurlCount = AddurlCount::truncate();\n        $getting_keyword = Keyword_count::truncate();\n        $TeamRating_count = TeamRating::truncate();\n        $WebRankCount = WebRankCount::truncate();\n        $pageranking = pageranking::truncate();\n        $socialrank = socialrank::truncate();\n        $PhonenumberCount = PhonenumberCount::truncate();\n        $Mywebaccesstoken = Mywebaccesstoken::truncate();\n        $Mywebaccess = Mywebaccess::truncate();\n        $EmailCount = EmailCount::truncate();\n        \/\/ $SeoPanel =SeoPanel::truncate();\n        $TasksBoard = TasksBoard::truncate();\n        $Interval = Interval::truncate();\n        $response = &#91;\n            'success' =&gt; true,\n            'data' =&gt; $data,\n            'message' =&gt; 'Data retrieved successfully.',\n        ];\n        return response()-&gt;json($response, 200);\n    }\n<\/code><\/pre>\n\n\n\n<p>Next go to ClearDataCommand.php and put below code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nnamespace App\\Console\\Commands;\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Support\\Facades\\Log;\nuse App\\Http\\Controllers\\Api\\AccountAdminController;\nclass ClearDataCommand extends Command\n{\n    \/**\n     * The name and signature of the console command.\n     *\n     * @var string\n     *\/\n    protected $signature = 'clear:data';\n    \/**\n     * The console command description.\n     *\n     * @var string\n     *\/\n    protected $description = 'Clears data using the clearData function';\n    \/**\n     * Execute the console command.\n     *\n     * @return int\n     *\/\n    public function handle()\n    {\n        Log::info(\"clear data me in kiye hai\");\n        $accountAdminController = new AccountAdminController();\n        $response = $accountAdminController-&gt;clearData();\n        $this-&gt;info('Account data cleared successfully.');\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>Next go to console&nbsp;&nbsp; -&gt;&nbsp;&nbsp; ClearDataCommand.php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nnamespace App\\Console;\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\nclass Kernel extends ConsoleKernel\n{\n    \/**\n     * Define the application's command schedule.\n     *\n     * @param  \\Illuminate\\Console\\Scheduling\\Schedule  $schedule\n     * @return void\n     *\/\n    protected function schedule(Schedule $schedule)\n    {\n        \/\/ $schedule-&gt;command('inspire')-&gt;hourly();\n    }\n    \/**\n     * Register the commands for the application.\n     *\n     * @return void\n     *\/\n    protected function commands()\n    {\n        $this-&gt;load(__DIR__.'\/Commands');\n        require base_path('routes\/console.php');\n    }\n}\n<\/code><\/pre>\n\n\n\n<p><strong>Next to run below command<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan clear:data\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"377\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-18-1024x377.png\" alt=\"\" class=\"wp-image-1604\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-18-1024x377.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-18-300x110.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-18-768x283.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-18.png 1291w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Lets check to database.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"398\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-19-1024x398.png\" alt=\"\" class=\"wp-image-1605\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-19-1024x398.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-19-300x117.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-19-768x299.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-19.png 1345w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I hope its helpfull for you \ud83d\udc4d\ud83d\udc4d.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating a custom delete command in Laravel involves defining a new Artisan command class, specifying its signature, description, and implementing the logic to delete records based on&#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":[638,3,636,637],"class_list":["post-1602","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-custom-command-in-laravel","tag-laravel","tag-laravel-command","tag-laravel-create-command"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create Delete Command in Laravel ? - 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\/how-to-create-delete-command-in-laravel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create Delete Command in Laravel ? - DevOps Freelancer\" \/>\n<meta property=\"og:description\" content=\"Creating a custom delete command in Laravel involves defining a new Artisan command class, specifying its signature, description, and implementing the logic to delete records based on...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/\" \/>\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=\"2024-01-20T06:36:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-05T07:11:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17-1024x420.png\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/\"},\"author\":{\"name\":\"Amit Kumar\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"headline\":\"How to Create Delete Command in Laravel ?\",\"datePublished\":\"2024-01-20T06:36:05+00:00\",\"dateModified\":\"2024-02-05T07:11:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/\"},\"wordCount\":332,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/image-17-1024x420.png\",\"keywords\":[\"custom-command-in-laravel\",\"laravel\",\"laravel-command\",\"laravel-create-command\"],\"articleSection\":[\"Laravel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/\",\"name\":\"How to Create Delete Command in Laravel ? - DevOps Freelancer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/image-17-1024x420.png\",\"datePublished\":\"2024-01-20T06:36:05+00:00\",\"dateModified\":\"2024-02-05T07:11:26+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/image-17.png\",\"contentUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/image-17.png\",\"width\":1314,\"height\":539},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-create-delete-command-in-laravel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create Delete Command in Laravel ?\"}]},{\"@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":"How to Create Delete Command in Laravel ? - 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\/how-to-create-delete-command-in-laravel\/","og_locale":"en_US","og_type":"article","og_title":"How to Create Delete Command in Laravel ? - DevOps Freelancer","og_description":"Creating a custom delete command in Laravel involves defining a new Artisan command class, specifying its signature, description, and implementing the logic to delete records based on...","og_url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/","og_site_name":"DevOps Freelancer","article_author":"https:\/\/www.facebook.com\/amitsthakurs\/","article_published_time":"2024-01-20T06:36:05+00:00","article_modified_time":"2024-02-05T07:11:26+00:00","og_image":[{"url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17-1024x420.png","type":"","width":"","height":""}],"author":"Amit Kumar","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/amits_thakurs","twitter_misc":{"Written by":"Amit Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/#article","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/"},"author":{"name":"Amit Kumar","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"headline":"How to Create Delete Command in Laravel ?","datePublished":"2024-01-20T06:36:05+00:00","dateModified":"2024-02-05T07:11:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/"},"wordCount":332,"commentCount":0,"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17-1024x420.png","keywords":["custom-command-in-laravel","laravel","laravel-command","laravel-create-command"],"articleSection":["Laravel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/","url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/","name":"How to Create Delete Command in Laravel ? - DevOps Freelancer","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/#primaryimage"},"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17-1024x420.png","datePublished":"2024-01-20T06:36:05+00:00","dateModified":"2024-02-05T07:11:26+00:00","author":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"breadcrumb":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/#primaryimage","url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17.png","contentUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/01\/image-17.png","width":1314,"height":539},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-delete-command-in-laravel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopsfreelancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Create Delete Command in Laravel ?"}]},{"@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\/1602","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=1602"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1602\/revisions"}],"predecessor-version":[{"id":1657,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1602\/revisions\/1657"}],"wp:attachment":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=1602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=1602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=1602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}