{"id":6304,"date":"2021-05-20T12:47:02","date_gmt":"2021-05-20T12:47:02","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=6304"},"modified":"2021-05-20T12:47:02","modified_gmt":"2021-05-20T12:47:02","slug":"laravel-passport-trying-to-get-property-secret-of-non-object","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/","title":{"rendered":"Laravel Passport Trying to get property &#8216;secret&#8217; of non-object"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">THIS IS FOR LARAVEL 8 AND LARAVEL\/PASSPORT<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"519\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/error2-1024x519.jpg\" alt=\"\" class=\"wp-image-6305\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/error2-1024x519.jpg 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/error2-300x152.jpg 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/error2-768x389.jpg 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/error2.jpg 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The first thing is to run the\u00a0<code>php artisan passport:install<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"544\" height=\"203\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/268.jpg\" alt=\"\" class=\"wp-image-6310\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/268.jpg 544w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/268-300x112.jpg 300w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Inside your database table\u00a0<em><strong>oauth_clients<\/strong><\/em>, under column\u00a0<em><strong>name<\/strong><\/em>, look for\u00a0<em><strong>Laravel Personal Access Client<\/strong><\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the&nbsp;<em><strong>secret<\/strong><\/em>&nbsp;beside&nbsp;<code>Laravel Personal Access Client<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open\u00a0<code>AuthServiceProvider<\/code>, then paste the secret inside the\u00a0<em><strong>boot<\/strong><\/em>\u00a0method where the\u00a0<code>CLIENT_SECRET<\/code>\u00a0is below:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPassport::personalAccessClientSecret(config(&#039;CLIENT_SECRET&#039;));\n\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">And don&#8217;t forget to also add the ID of the secret from your database.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPassport::personalAccessClientId(config(&#039;ID&#039;));\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"318\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/2558.jpg\" alt=\"\" class=\"wp-image-6311\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/2558.jpg 655w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/2558-300x146.jpg 300w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Use the quote along with the ID and CLIENT_SECRET as config() is expected to get a string.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now is solved this error<\/p>\n","protected":false},"excerpt":{"rendered":"<p>THIS IS FOR LARAVEL 8 AND LARAVEL\/PASSPORT The first thing is to run the\u00a0php artisan passport:install. Inside your database table\u00a0oauth_clients, [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":6312,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[5317,5052,5150],"class_list":["post-6304","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-get-property","tag-laravel","tag-passport"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Laravel Passport Trying to get property &#039;secret&#039; of non-object - scmGalaxy<\/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.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Laravel Passport Trying to get property &#039;secret&#039; of non-object - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"THIS IS FOR LARAVEL 8 AND LARAVEL\/PASSPORT The first thing is to run the\u00a0php artisan passport:install. Inside your database table\u00a0oauth_clients, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-20T12:47:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/trying-to-get-property-e1621514799675.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"615\" \/>\n\t<meta property=\"og:image:height\" content=\"346\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"dharmendra K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dharmendra K\" \/>\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.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/\"},\"author\":{\"name\":\"dharmendra K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/cd8e86c9e9d41f571c169472b896fc89\"},\"headline\":\"Laravel Passport Trying to get property &#8216;secret&#8217; of non-object\",\"datePublished\":\"2021-05-20T12:47:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/\"},\"wordCount\":96,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/trying-to-get-property-e1621514799675.jpg\",\"keywords\":[\"get property\",\"laravel\",\"passport\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/\",\"name\":\"Laravel Passport Trying to get property 'secret' of non-object - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/trying-to-get-property-e1621514799675.jpg\",\"datePublished\":\"2021-05-20T12:47:02+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/cd8e86c9e9d41f571c169472b896fc89\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/trying-to-get-property-e1621514799675.jpg\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/trying-to-get-property-e1621514799675.jpg\",\"width\":615,\"height\":346},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-passport-trying-to-get-property-secret-of-non-object\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Laravel Passport Trying to get property &#8216;secret&#8217; of non-object\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/cd8e86c9e9d41f571c169472b896fc89\",\"name\":\"dharmendra K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g\",\"caption\":\"dharmendra K\"},\"description\":\"A software engineer is a person who applies the principles of software engineering to the design, development, maintenance, testing, and evaluation of computer software.\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/dharmendra\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Laravel Passport Trying to get property 'secret' of non-object - scmGalaxy","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.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/","og_locale":"en_US","og_type":"article","og_title":"Laravel Passport Trying to get property 'secret' of non-object - scmGalaxy","og_description":"THIS IS FOR LARAVEL 8 AND LARAVEL\/PASSPORT The first thing is to run the\u00a0php artisan passport:install. Inside your database table\u00a0oauth_clients, [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/","og_site_name":"scmGalaxy","article_published_time":"2021-05-20T12:47:02+00:00","og_image":[{"width":615,"height":346,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/trying-to-get-property-e1621514799675.jpg","type":"image\/jpeg"}],"author":"dharmendra K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"dharmendra K","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/"},"author":{"name":"dharmendra K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/cd8e86c9e9d41f571c169472b896fc89"},"headline":"Laravel Passport Trying to get property &#8216;secret&#8217; of non-object","datePublished":"2021-05-20T12:47:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/"},"wordCount":96,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/trying-to-get-property-e1621514799675.jpg","keywords":["get property","laravel","passport"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/","name":"Laravel Passport Trying to get property 'secret' of non-object - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/trying-to-get-property-e1621514799675.jpg","datePublished":"2021-05-20T12:47:02+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/cd8e86c9e9d41f571c169472b896fc89"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/trying-to-get-property-e1621514799675.jpg","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/trying-to-get-property-e1621514799675.jpg","width":615,"height":346},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-passport-trying-to-get-property-secret-of-non-object\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Laravel Passport Trying to get property &#8216;secret&#8217; of non-object"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/cd8e86c9e9d41f571c169472b896fc89","name":"dharmendra K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g","caption":"dharmendra K"},"description":"A software engineer is a person who applies the principles of software engineering to the design, development, maintenance, testing, and evaluation of computer software.","url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/dharmendra\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=6304"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6304\/revisions"}],"predecessor-version":[{"id":6313,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6304\/revisions\/6313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/6312"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=6304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=6304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=6304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}