{"id":3650,"date":"2020-12-21T04:31:24","date_gmt":"2020-12-21T04:31:24","guid":{"rendered":"https:\/\/studysection.com\/blog\/?p=3650"},"modified":"2021-01-20T04:30:46","modified_gmt":"2021-01-20T04:30:46","slug":"some-tips-for-the-laravel-framework","status":"publish","type":"post","link":"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/","title":{"rendered":"Some tips for the laravel framework"},"content":{"rendered":"<p>Let\u2019s go through some tips and tricks which we can add to Laravel applications to optimize website performance.<\/p>\n<ol>\n<li>\n<h2>Invokable Controllers:<\/h2>\n<p> If you want to create a controller with just one action in Laravel, you can use the __invoke() method and even create an \u201cinvokable\u201d controller.<br \/>\n<code><strong>Example:<\/strong><\/p>\n<p>\tClass ControllerName extends controller {<br \/>\n\t\tPublic function _invoke($id){<br \/>\n\t\t       return  view(\u2018user.profie\u2019, [\u2018user\u2019 => User::findOrFail($id)]);<br \/>\n}}<br \/>\n   <strong>Routes:<\/strong>  Route::get('user\/{id}' \u2018ControllerName\u2019);<\/p>\n<p> <strong>Command to generate command:<\/strong><br \/>\nphp artisan make:controller  ControllerName --invokable<\/code>\n<\/li>\n<li>\n<h3>Unsigned Integer:<\/h3>\n<p> For foreign key migrations instead of integer() we should use unsignedInteger() type or integer()->unsigned() , otherwise you may get SQL errors.<br \/>\n<code>Example: Schema::create('employees', function (Blueprint $table) {<br \/>\n   $table-> unsignedInteger ('company_id'); \/\/if primary id Increments<br \/>\n   $table->foreign('company_id')->references('id')->on('companies');<br \/>\n});<\/code><\/li>\n<li><strong>OrderBy with Eloquent:<\/strong> You can specify orderBy() directly on your <a href=\"https:\/\/studysection.com\/blog\/how-to-use-mongodb-with-laravel-eloquent-operations\/\">Eloquent<\/a> relationships.\n<p><code>Example: return $this->hasMany(Product::class)->orderBy('name');<\/code><\/li>\n<li><strong>Raw DB Queries:<\/strong> You can use RAW DB queries in various places, including havingRaw() function after groupBy().\n<p><code>Example: Product::groupBy('category_id')->havingRaw('COUNT(*) > 1')->get();<\/code><\/li>\n<li><strong>Eloquent where date methods:<\/strong> In Eloquent, check the date with functions whereDay() , whereMonth() , whereYear() , whereDate() and whereTime() .\n<p><code>Example:<br \/>\n$products = Product::whereDate('created_at', '2018-01-31')->get();<br \/>\n$products = Product::whereMonth('created_at', '12')->get();<br \/>\n$products = Product::whereDay('created_at', '31')->get();<br \/>\n$products = Product::whereYear('created_at', date('Y'))->get();<br \/>\n$products = Product::whereTime('created_at', '=', '14:13:58')->get();<\/code>\n<\/li>\n<li><strong>Route group within a group:<\/strong> In Routes, you can create a group within a group, assigning a certain middleware only to some URLs in the \u201cparent\u201d group.<br \/>\n<code>Example:<br \/>\nRoute::group(['prefix' => 'account', 'as' => 'account.'], function() {<br \/>\n Route::get('login', 'AccountController@login');<br \/>\n Route::get('register', 'AccountController@register');<br \/>\n  \tRoute::group(['middleware' => 'auth'], function() {<br \/>\n    \t\tRoute::get('edit', 'AccountController@edit');<br \/>\n \t });<br \/>\n});<\/code>\n<\/li>\n<li><strong>Increments and decrements:<\/strong> if we want to increment some DB column in some table in Laravel, just use increment() function. We can increment value with any number.\n<p><code>Example:<br \/>\nPost::find($post_id)->increment('view_count');<br \/>\nUser::find($user_id)->increment('points', 50);<\/code>\n<\/li>\n<li>We can check if the View file exists before actually loading it.<br \/>\n<code>Example:<br \/>\nif (view()->exists('custom.page')) {<br \/>\n\/\/ Load the view<br \/>\n}<\/code>\n<\/li>\n<li><strong>No timestamp columns in the table:<\/strong> If our DB table doesn\u2019t contain timestamp fields created_at and updated_at, we can specify that the Eloquent model wouldn\u2019t use them, with $timestamps = false property.<br \/>\n<code>Example:<br \/>\n class Company extends Model<br \/>\n{<br \/>\n  public $timestamps = false;<br \/>\n}<\/code>\n<\/li>\n<li><strong>Database migrations column types:<\/strong><br \/>\n<code>$table->geometry('positions');<br \/>\n$table->ipAddress('visitor');<br \/>\n$table->macAddress('device');<br \/>\n$table->point('position');<br \/>\n$table->uuid('id');<\/code><\/p>\n<p>See all column types: <a href=\"https:\/\/laravel.com\/docs\/master\/migrations#creating-columns\">visit here<\/a>\n<\/li>\n<li><strong>Soft-deletes:<\/strong> multiple restores: When using soft-deletes, we can restore multiple rows in one sentence.\n<p><code>Post::withTrashed()->where('author_id', 1)->restore();<\/code><\/li>\n<li>Don\u2019t create Controllers when we want the route to just show a certain view:<br \/>\n Just use Route::view() function<br \/>\n<code>Route::view('about', 'texts.about');<\/code><\/li>\n<li><strong>Image validation:<\/strong> While validating uploaded images, we can specify the dimensions that are required.<br \/>\n<code>Example:<br \/>\n'photo' => 'dimensions:max_width=4096,max_height=4096'<\/code>\n<\/li>\n<li><strong>Blade @auth:<\/strong> Instead of if-statement to check logged in user, use @auth directive.<br \/>\n<code>Example:<br \/>\n @auth<br \/>\n\/\/ The user is authenticated.<br \/>\n@endauth<\/code>\n<\/li>\n<li><strong>To Fail or Not to Fail function:<\/strong> In addition to findOrFail(), there\u2019s also the Eloquent method firstOrFail() which will return a 404 page if no records for the query are found.<br \/>\n<code>Example:<br \/>\n $user=User::where('email','codechief@gmail.com')->firstOrFail();<\/code><\/li>\n<li><strong>More convenient DD:<\/strong>  Instead of doing dd($result); you can put ->dd() as a method directly at the end of your Eloquent sentence, or any Collection.<br \/>\n<code>Example:<br \/>\n\/\/ Instead of<br \/>\n$users = User::where('name', 'Taylor')->get();<br \/>\ndd($users);<br \/>\n\/\/ Do this<br \/>\n$users = User::where('name', 'Taylor')->get()->dd();<\/code>\n<\/li>\n<li><strong>How to avoid error in {{ $post->user->name }} if user is deleted? :<\/strong><br \/>\nYou can assign a default model in belongsTo relationship, to avoid fatal errors when calling it like {{ $post->user->name }} if $post->user doesn\u2019t exist.<\/p>\n<p><code>public function user()<br \/>\n{<br \/>\n  return $this->belongsTo('App\\User')->withDefault();<br \/>\n}<\/code>\n<\/li>\n<li><strong>Redirect to Specific Controller Method:<\/strong> We can redirect() not only to URL or specific route, but to a specific Controller\u2019s specific method, and even pass the parameters. Use this:<br \/>\n<code>Example: return redirect()->action('SomeController@method',['param' => $value]);<\/code><\/li>\n<li><strong>Update parent updated_at easily:<\/strong> If we are updating a record and want to update the updated_at column of the parent relationship (like, we add new post comment and want posts.updated_at to renew), just use $touches = [\u2018post\u2019]; property on child model.<br \/>\n<code>Example:<br \/>\nclass Comment extends Model<br \/>\n{<br \/>\n \/**<br \/>\n  * All of the relationships to be touched.<br \/>\n  *<br \/>\n  * @var array<br \/>\n  *\/<br \/>\n protected $touches = ['post'];<br \/>\n}<\/code>\n<\/li>\n<li><strong>Use withCount() to Calculate Child Relationships Records:<\/strong> If you have hasMany() relationship, and you want to calculate \u201cchildren\u201d entries, don\u2019t write a special query. For example, if you have posts and comments on your User model, write this withCount() :<br \/>\n<code>public function index()<br \/>\n{<br \/>\n $users = User::withCount(['posts', 'comments'])->get();<br \/>\n return view('users', compact('users'));<br \/>\n}<\/code>\n<\/li>\n<\/ol>\n<p><small><em>If you have skills in PHP programming and you want to enhance your career in this field, a PHP certification from StudySection can help you reach your desired goals. Both beginner level and expert level <a href=\"https:\/\/www.studysection.com\/cakephp-developer-foundation-diploma\">PHP Certification Exams<\/a> are offered by StudySection along with other programming certification exams.<\/em><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let\u2019s go through some tips and tricks which we can add to Laravel applications to optimize website performance. Invokable Controllers:<\/p>\n","protected":false},"author":1,"featured_media":3651,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[189,65],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>StudySection Blog - Some tips for the laravel framework<\/title>\n<meta name=\"description\" content=\"Let\u2019s go through some tips and tricks which we can add to Laravel applications to optimize the website performance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"StudySection Blog - Some tips for the laravel framework\" \/>\n<meta property=\"og:description\" content=\"Let\u2019s go through some tips and tricks which we can add to Laravel applications to optimize the website performance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Posts on famous people, innovations and educational topics\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/studysection\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-21T04:31:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-20T04:30:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/12\/tips.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin-studysection-blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@studysection\" \/>\n<meta name=\"twitter:site\" content=\"@studysection\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin-studysection-blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/\"},\"author\":{\"name\":\"admin-studysection-blog\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\"},\"headline\":\"Some tips for the laravel framework\",\"datePublished\":\"2020-12-21T04:31:24+00:00\",\"dateModified\":\"2021-01-20T04:30:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/\"},\"wordCount\":552,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"keywords\":[\"Framework\",\"laravel\"],\"articleSection\":[\"Learn and Grow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/\",\"url\":\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/\",\"name\":\"StudySection Blog - Some tips for the laravel framework\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/#website\"},\"datePublished\":\"2020-12-21T04:31:24+00:00\",\"dateModified\":\"2021-01-20T04:30:46+00:00\",\"description\":\"Let\u2019s go through some tips and tricks which we can add to Laravel applications to optimize the website performance.\",\"breadcrumb\":{\"@id\":\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/studysection.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Some tips for the laravel framework\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/studysection.com\/blog\/#website\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"name\":\"Blog Posts on famous people, innovations and educational topics\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/studysection.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/studysection.com\/blog\/#organization\",\"name\":\"StudySection\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"contentUrl\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"width\":920,\"height\":440,\"caption\":\"StudySection\"},\"image\":{\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/studysection\",\"https:\/\/twitter.com\/studysection\",\"https:\/\/www.instagram.com\/study.section\/\",\"https:\/\/www.linkedin.com\/company\/studysection\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\",\"name\":\"admin-studysection-blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"caption\":\"admin-studysection-blog\"},\"url\":\"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"StudySection Blog - Some tips for the laravel framework","description":"Let\u2019s go through some tips and tricks which we can add to Laravel applications to optimize the website performance.","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:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/","og_locale":"en_US","og_type":"article","og_title":"StudySection Blog - Some tips for the laravel framework","og_description":"Let\u2019s go through some tips and tricks which we can add to Laravel applications to optimize the website performance.","og_url":"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/","og_site_name":"Blog Posts on famous people, innovations and educational topics","article_publisher":"https:\/\/www.facebook.com\/studysection","article_published_time":"2020-12-21T04:31:24+00:00","article_modified_time":"2021-01-20T04:30:46+00:00","og_image":[{"width":300,"height":200,"url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/12\/tips.png","type":"image\/png"}],"author":"admin-studysection-blog","twitter_card":"summary_large_image","twitter_creator":"@studysection","twitter_site":"@studysection","twitter_misc":{"Written by":"admin-studysection-blog","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/#article","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/"},"author":{"name":"admin-studysection-blog","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402"},"headline":"Some tips for the laravel framework","datePublished":"2020-12-21T04:31:24+00:00","dateModified":"2021-01-20T04:30:46+00:00","mainEntityOfPage":{"@id":"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/"},"wordCount":552,"commentCount":0,"publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"keywords":["Framework","laravel"],"articleSection":["Learn and Grow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/","url":"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/","name":"StudySection Blog - Some tips for the laravel framework","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/#website"},"datePublished":"2020-12-21T04:31:24+00:00","dateModified":"2021-01-20T04:30:46+00:00","description":"Let\u2019s go through some tips and tricks which we can add to Laravel applications to optimize the website performance.","breadcrumb":{"@id":"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/studysection.com\/blog\/some-tips-for-the-laravel-framework\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/studysection.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Some tips for the laravel framework"}]},{"@type":"WebSite","@id":"https:\/\/studysection.com\/blog\/#website","url":"https:\/\/studysection.com\/blog\/","name":"Blog Posts on famous people, innovations and educational topics","description":"","publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/studysection.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/studysection.com\/blog\/#organization","name":"StudySection","url":"https:\/\/studysection.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","contentUrl":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","width":920,"height":440,"caption":"StudySection"},"image":{"@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/studysection","https:\/\/twitter.com\/studysection","https:\/\/www.instagram.com\/study.section\/","https:\/\/www.linkedin.com\/company\/studysection"]},{"@type":"Person","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402","name":"admin-studysection-blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","caption":"admin-studysection-blog"},"url":"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/"}]}},"views":464,"_links":{"self":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/3650"}],"collection":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/comments?post=3650"}],"version-history":[{"count":4,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/3650\/revisions"}],"predecessor-version":[{"id":3807,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/3650\/revisions\/3807"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media\/3651"}],"wp:attachment":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media?parent=3650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/categories?post=3650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/tags?post=3650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}