{"id":10598,"date":"2021-10-01T10:45:00","date_gmt":"2021-10-01T01:45:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=10598"},"modified":"2021-09-30T19:52:22","modified_gmt":"2021-09-30T10:52:22","slug":"laravel-jetstream","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/10598","title":{"rendered":"Laravel &#8211; Jetstream"},"content":{"rendered":"\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2021\/09\/Screen-Shot-2021-09-30-at-13.53.14-3.png\" alt=\"\" class=\"wp-image-10614\" width=\"838\" height=\"440\"\/><\/figure>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><font style=\"vertical-align: inherit\"><font style=\"vertical-align: inherit\">After Laravel version 7, Laravel version 8 introduced new features, this is the implementation of application&#8217;s login, registration, email verification, two-factor authentication, session management, and optional team management features. <\/font><\/font><\/p>\n\n\n\n<p>This week I would like to share about using Jetstream how to set up in your project.<\/p>\n\n\n\n<p>Firstly, it is better to install Jetstream into new Laravel project. Attempting to install Jetstream into an existing Laravel applicaiton will result in unexpected behavior and issues.<\/p>\n\n\n\n<h3>I<strong>nstalling Jetstream <\/strong><\/h3>\n\n\n\n<p>You can install Jetstream via composer.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer require laravel\/jetstream<\/code><\/pre>\n\n\n\n<p>After installation is successful, you can choose one frontend stack from two of these <strong>Liveware<\/strong> and <strong>Intertia.js<\/strong>. This time I will set up using Liveware. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan jetstream:install livewire<\/code><\/pre>\n\n\n\n<p>After the installation is finished, you may install NPM dependencies and migrate the database. So, you may create new database, this name will be same from your .env file DB_DATABASE name.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install\nnpm run dev\nphp artisan migrate<\/code><\/pre>\n\n\n\n<p>After running all of the commands, there will be finished the installation using Jetstream. The last thing is need to start the development server to see the result.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan serve --port=8080<\/code><\/pre>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1280\" height=\"672\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2021\/09\/Screen-Shot-2021-09-30-at-13.53.14-4.png\" alt=\"\" class=\"wp-image-10615\"\/><figcaption><span class=\"has-inline-color has-vivid-cyan-blue-color\">Register<\/span><\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2021\/09\/Screen-Shot-2021-09-30-at-13.52.59-2.png\" alt=\"\" class=\"wp-image-10616\" width=\"259\" height=\"135\"\/><figcaption><span class=\"has-inline-color has-vivid-cyan-blue-color\">Login<\/span><\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1280\" height=\"672\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2021\/09\/Screen-Shot-2021-09-30-at-13.53.32-2.png\" alt=\"\" class=\"wp-image-10617\"\/><figcaption><span class=\"has-inline-color has-vivid-cyan-blue-color\">redirect to dashboard page after login<\/span><\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>I hope you&#8217;ll enjoy reading it.<\/p>\n\n\n\n<p>By Ami<\/p>\n\n\n\n<p> <\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/10598\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/10598\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Laravel &#8211; Jetstream\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/10598\" data-text=\"Laravel &#8211; Jetstream\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/10598\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/10598\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>After Laravel version 7, Laravel version 8 introduced new features, this is the implementation of application&#038; [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/10598"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=10598"}],"version-history":[{"count":6,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/10598\/revisions"}],"predecessor-version":[{"id":10620,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/10598\/revisions\/10620"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=10598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=10598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=10598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}