{"repo":"isaacdarcilla/laranext-monorepo","free":true,"listed":false,"github":"https://github.com/isaacdarcilla/laranext-monorepo","clone":"git clone https://github.com/isaacdarcilla/laranext-monorepo.git","description":"⭐ Laravel + NextJS monorepo starter kit","language":"PHP","stars":19,"topics":["laravel","lerna","lerna-monorepo","monorepo","nextjs","reactjs","tailwindcss","php8"],"license":null,"category":"databases-storage","readme_excerpt":"Laravel + Next monorepo starter ⭐ Based on the Laravel Breeze scaffolding with NextJS Installation Steps Clone the repository Install node packages Install composer packages Migrate database Next, ensure that your application's APP URL and FRONTEND URL environment variables are set to http://localhost:8000 and http://localhost:3000 , respectively. After defining the appropriate environment variables, you may serve the Laravel application using the serve Artisan command: Finally, run the application via npm run dev . The application will be available at http://localhost:3000 You may want to open separate terminals for backend and frontend folders. Or you can just use -w flag when starting the development server. Adding Package to Workspace To add new packages to the workspace, for example husky , Authentication Hook This Next.js application contains a custom useAuth React hook, designed to abstract all authentication logic away from your pages. In addition, the hook can be used to access the currently authenticated user: Note: You will need to use optional chaining ( user?.name instead of user.name ) when accessing properties on the user object to account for Next.js's initial server-side render. Named Routes For convenience, Ziggy may be used to reference your Laravel application's named route URLs from your React application. More Info https://github.com/laravel/breeze-next/tree/master","default_branch":null,"files":null,"tree":[],"storefront":"/r/isaacdarcilla","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/isaacdarcilla/laranext-monorepo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}