{"id":494,"date":"2023-06-26T06:19:37","date_gmt":"2023-06-26T06:19:37","guid":{"rendered":"https:\/\/www.devopsfreelancer.com\/blog\/?p=494"},"modified":"2023-06-26T06:19:39","modified_gmt":"2023-06-26T06:19:39","slug":"how-to-add-active-and-inactive-button-in-laravel","status":"publish","type":"post","link":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/","title":{"rendered":"How to add Active and Inactive Button in Laravel ?"},"content":{"rendered":"\n<p>In this tutorial we&#8217;re going to learn how to create functionality active and inactive status in laravel. We can implement change status on click on button using ajax with bootstrap toggle button. Here we will update user status active inactive with boolean data type with 0 and 1.<\/p>\n\n\n\n<p>First install Laravel project<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer create-project laravel\/laravel example-app<\/code><\/pre>\n\n\n\n<p>Next to Generate Authentication<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer requires laravel\/ui\r\nphp artisan ui bootstrap\r\nphp artisan ui bootstrap --auth<\/code><\/pre>\n\n\n\n<p>Next to run below code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install\nnpm run dev<\/code><\/pre>\n\n\n\n<p>Next go to migration file and put 1 column<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$table->boolean('status')->default(0);<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25-1024x512.png\" alt=\"\" class=\"wp-image-496\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25-1024x512.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25-300x150.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25-768x384.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now migrate the table<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate<\/code><\/pre>\n\n\n\n<p>Next to create Controller file using below code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:controller UserController<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"136\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-24.png\" alt=\"\" class=\"wp-image-495\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-24.png 1018w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-24-300x40.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-24-768x103.png 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/figure>\n\n\n\n<p><strong>Next got to controller and put below code.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\r\n  \r\nnamespace App\\Http\\Controllers;\r\n  \r\nuse Illuminate\\Http\\Request;\r\nuse App\\User;\r\n  \r\nclass UserController extends Controller\r\n{\r\n    \/**\r\n     * Responds with a welcome message with instructions\r\n     *\r\n     * @return \\Illuminate\\Http\\Response\r\n     *\/\r\n    public function index()\r\n    {\r\n        $users = User::get();\r\n        return view('users',compact('users'));\r\n    }\r\n  \r\n    \/**\r\n     * Responds with a welcome message with instructions\r\n     *\r\n     * @return \\Illuminate\\Http\\Response\r\n     *\/\r\n    public function changeStatus(Request $request)\r\n    {\r\n        $user = User::find($request->user_id);\r\n        $user->status = $request->status;\r\n        $user->save();\r\n  \r\n        return response()->json(&#91;'success'=>'Status change successfully.']);\r\n    }\r\n}<\/code><\/pre>\n\n\n\n<p><strong>Next to create view page<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>resources\/views\/users.blade.php\r\n<\/code><\/pre>\n\n\n\n<p>Next go to users.blade.php and put below code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\r\n&lt;html>\r\n&lt;head>\r\n    &lt;title>Laravel Update User Status Using Toggle Button Example&lt;\/title>\r\n    &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\" >&lt;\/script>\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/twitter-bootstrap\/3.3.7\/css\/bootstrap.min.css\"  \/>\r\n    &lt;link href=\"https:\/\/gitcdn.github.io\/bootstrap-toggle\/2.2.2\/css\/bootstrap-toggle.min.css\" rel=\"stylesheet\">\r\n    &lt;script src=\"https:\/\/gitcdn.github.io\/bootstrap-toggle\/2.2.2\/js\/bootstrap-toggle.min.js\">&lt;\/script>\r\n&lt;\/head>\r\n&lt;body>\r\n    &lt;br>&lt;br>\r\n    &lt;div class=\"container mt-5\">\r\n        &lt;h1>Laravel Update User Status Using Toggle Button Example &lt;\/h1>\r\n        &lt;table class=\"table table-bordered\">\r\n            &lt;thead>\r\n               &lt;tr>\r\n                  &lt;th>Name&lt;\/th>\r\n                  &lt;th>Email&lt;\/th>\r\n                  &lt;th>Status&lt;\/th>\r\n               &lt;\/tr>\r\n            &lt;\/thead>\r\n            &lt;tbody>\r\n               @foreach($users as $user)\r\n                  &lt;tr>\r\n                     &lt;td>{{ $user->name }}&lt;\/td>\r\n                     &lt;td>{{ $user->email }}&lt;\/td>\r\n                     &lt;td>\r\n                        &lt;input data-id=\"{{$user->id}}\" class=\"toggle-class\" type=\"checkbox\" data-onstyle=\"success\" data-offstyle=\"danger\" data-toggle=\"toggle\" data-on=\"Active\" data-off=\"InActive\" {{ $user->status ? 'checked' : '' }}>\r\n                     &lt;\/td>\r\n                  &lt;\/tr>\r\n               @endforeach\r\n            &lt;\/tbody>\r\n        &lt;\/table>\r\n    &lt;\/div>\r\n&lt;\/body>\r\n&lt;script>\r\n  $(function() {\r\n    $('.toggle-class').change(function() {\r\n        var status = $(this).prop('checked') == true ? 1 : 0;\r\n        var user_id = $(this).data('id');\r\n\r\n        $.ajax({\r\n            type: \"GET\",\r\n            dataType: \"json\",\r\n            url: '\/changeStatus',\r\n            data: {'status': status, 'user_id': user_id},\r\n            success: function(data){\r\n              console.log(data.success)\r\n            }\r\n        });\r\n    })\r\n  })\r\n&lt;\/script>\r\n&lt;\/html>\r<\/code><\/pre>\n\n\n\n<p>Next go to web.php and put below code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Route::get('users', &#91;App\\Http\\Controllers\\UserController::class, 'index']);\r\nRoute::get('changeStatus', &#91;App\\Http\\Controllers\\UserController::class, 'changeStatus']);<\/code><\/pre>\n\n\n\n<p>Now run the project using below code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan serve\r\n\r<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-26-1024x325.png\" alt=\"\" class=\"wp-image-497\" width=\"840\" height=\"266\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-26-1024x325.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-26-300x95.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-26-768x243.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-26.png 1363w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Let&#8217;s got to database and check status would be update or not.<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"400\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-27-1024x400.png\" alt=\"\" class=\"wp-image-498\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-27-1024x400.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-27-300x117.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-27-768x300.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-27.png 1353w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we&#8217;re going to learn how to create functionality active and inactive status in laravel. We can implement change status on click on button using&#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":[179,178,177],"class_list":["post-494","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-block-and-unblocked-laravel","tag-how-to-add-block-and-unlblock-in-laravel","tag-laravel-active"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to add Active and Inactive Button 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-add-active-and-inactive-button-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 add Active and Inactive Button in Laravel ? - DevOps Freelancer\" \/>\n<meta property=\"og:description\" content=\"In this tutorial we&#8217;re going to learn how to create functionality active and inactive status in laravel. We can implement change status on click on button using...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-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=\"2023-06-26T06:19:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-26T06:19:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25-1024x512.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=\"3 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-add-active-and-inactive-button-in-laravel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/\"},\"author\":{\"name\":\"Amit Kumar\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"headline\":\"How to add Active and Inactive Button in Laravel ?\",\"datePublished\":\"2023-06-26T06:19:37+00:00\",\"dateModified\":\"2023-06-26T06:19:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/\"},\"wordCount\":141,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/image-25-1024x512.png\",\"keywords\":[\"block-and-unblocked-laravel\",\"how-to-add-block-and-unlblock-in-laravel\",\"laravel-active\"],\"articleSection\":[\"Laravel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/\",\"name\":\"How to add Active and Inactive Button in Laravel ? - DevOps Freelancer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/image-25-1024x512.png\",\"datePublished\":\"2023-06-26T06:19:37+00:00\",\"dateModified\":\"2023-06-26T06:19:39+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/image-25.png\",\"contentUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/image-25.png\",\"width\":1366,\"height\":683},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-add-active-and-inactive-button-in-laravel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add Active and Inactive Button 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 add Active and Inactive Button 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-add-active-and-inactive-button-in-laravel\/","og_locale":"en_US","og_type":"article","og_title":"How to add Active and Inactive Button in Laravel ? - DevOps Freelancer","og_description":"In this tutorial we&#8217;re going to learn how to create functionality active and inactive status in laravel. We can implement change status on click on button using...","og_url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/","og_site_name":"DevOps Freelancer","article_author":"https:\/\/www.facebook.com\/amitsthakurs\/","article_published_time":"2023-06-26T06:19:37+00:00","article_modified_time":"2023-06-26T06:19:39+00:00","og_image":[{"url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25-1024x512.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/#article","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/"},"author":{"name":"Amit Kumar","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"headline":"How to add Active and Inactive Button in Laravel ?","datePublished":"2023-06-26T06:19:37+00:00","dateModified":"2023-06-26T06:19:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/"},"wordCount":141,"commentCount":0,"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25-1024x512.png","keywords":["block-and-unblocked-laravel","how-to-add-block-and-unlblock-in-laravel","laravel-active"],"articleSection":["Laravel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/","url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/","name":"How to add Active and Inactive Button in Laravel ? - DevOps Freelancer","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/#primaryimage"},"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25-1024x512.png","datePublished":"2023-06-26T06:19:37+00:00","dateModified":"2023-06-26T06:19:39+00:00","author":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"breadcrumb":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/#primaryimage","url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25.png","contentUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/06\/image-25.png","width":1366,"height":683},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-add-active-and-inactive-button-in-laravel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopsfreelancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to add Active and Inactive Button 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\/494","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=494"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":499,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/494\/revisions\/499"}],"wp:attachment":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}