Category : jetstream

I am using Laravel Jestream. I am also adding "dark theme" support for my application. So far, I have successfully set dark classes for the navigation links in the resources/views/navigation-menu.blade.php file like so: <!– Navigation Links –> <div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex"> <x-jet-nav-link class="dark:text-gray-200 dark:hover:text-blue-300" href="{{ route($ruta_dashboard) }}" :active="request()->routeIs($ruta_dashboard)"> {{ __(‘Dashboard’) }} </x-jet-nav-link> </div> ..

Read more

anyone I got stuck when i try to pass data from the controller to the view blade. I am using laravel jetstream as the starter of my project and here is my code The Dashboard Controller public function index() { $this->data[‘currentAdminMenu’] = ‘dashboard’; return view(‘dashboard’, $this->data); } Main Layout <body class="antialiased"> <div id="app"> <div class="main-wrapper"> ..

Read more

I am working on the Jetstream livewire, when I run the the command "npm install" it run successfully but after i run the command "npm run dev" I got this error . ERROR in ./node_modules/axios/lib/defaults.js 22:20-27 Module not found: Error: Can’t resolve ‘process/browser.js’ in ‘F:xampphtdocslaravele-commercenode_modulesaxioslib’ webpack compiled with 1 error PS F:xampphtdocslaravele-commerce> Sourc..

Read more

When I try to install laravel jetstream on my project directory using "composer require laravel/jetstream", it keeps on displaying error message https://repo.packagist.org could not be fully loaded (curl error 7 while downloading https://repo.packagist.org/packages.json: Failed to connect to 127.0.0.1 port 7578: Connection refused), package information was loaded from the local cache and may be out of ..

Read more

I have created a simple modal using jetstreams modal: <x-jet-dialog-modal wire:model="openChartModal"> <x-slot name="title"> </x-slot> <x-slot name="content"> <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script> <canvas id="doughnut-chart" width="800" height="450"></canvas> <script> new Chart(document.getElementById("doughnut-chart"), { type: ‘doughnut’, data: { labels: [ "Building Insurance", "Security Cost", "Cleaning Service Cost", "Estate Fees", "Maintainance Cost", "Bond Repayment"], datasets: [ { label: "Expenses", backgroundColor: ["#3e95cd", "#8e5ea2","#3cba9f","#e8c3b9","#c45850","#295959"], data: [ ..

Read more

So, I followed this tutorial to integrate a Facebook login into my Laravel app (https://www.tutsmake.com/laravel-8-facebook-login-tutorial-step-by-step/) Super simple tutorial, and on my local development environment, everything works great. However, when I pushed the project to my live environment, the Facebook login has stopped working, giving me the following error: "Can’t Load URL: The domain of this ..

Read more

I reused a Jetstream modal component which was the delete user modal. I created a simple button to open it like to: <div class="p-2"> <button wire:click="createModalForm" class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded"> Add Property </button> </div> This goes to the createModalForm function, the createModalForm is set to false and changes here: public function createModalForm(){ ..

Read more

jetstream application I have installed vue3-date-time-picker with the below code <Datepicker :disabledDates="disabledDates" @click="doSomething" v-model="date" inline autoApply :minDate="new Date()" :maxDate="maxdate" :enableTimePicker="false"></Datepicker> setup() { const date = ref(); var today = new Date(); const mxdate = new Date(today.getFullYear(), today.getMonth()+2, today.getDate()) return { date, maxdate } }, methods: { doSomething(){ alert(this.date) alert("hello") console.log("Check date") }, } When I ..

Read more

I must two types of user on my laravel project. I alredy separated Models https://samuelstancl.me/multiple-user-models-with-laravel-jetstream but now I need to make separeted routes and controllers for each login. So basically, if I have two Models OriginalUsers PortalUsers I need to make two login Controllers with urls /original/login /portal/login I found like I need to edit ..

Read more

Ive created a simple collection. In my database ive created the image entry as $table->string(‘images’)->nullable(); The factory entry for the image is: ‘images’=> $this->faker->image(‘public/storage/images’,600,600, null, false), Ive run php artisan storage:link and also cleared my cache. Im displaying my entry in the view as follows: <img src="/storage/images/{{$property->image}}"> The image displays as a broken box, how ..

Read more

This error suddenly appears out of nowhere. i tried reinstalling the npm packages but it doesn’t work. but when it works when i create a fresh project of jetstream-inertia with the same npm packages. Any Help? Tested on Chrome: app.js:10 Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘dataset’) at exports.createInertiaApp (app.js:10) at ..

Read more

started a laravel project and keep coming across this error during installation. (base) Sergios-MacBook-Pro:basic yeyo$ composer require laravel/jetstream [UnexpectedValueException] Invalid version string "^8.0" require [–dev] [–dry-run] [–prefer-source] [–prefer-dist] [–prefer-install PREFER-INSTALL] [–fixed] [–no-suggest] [–no-progress] [–no-update] [–no-install] [–no-scripts] [–update-no-dev] [-w|–update-with-dependencies] [-W|–update-with-all-dependencies] [–with-dependencies] [–with-all-dependencies] [–ignore-platform-req IGNORE-PLATFORM-REQ] [–ignore-platform-reqs] [–prefer-stable] [–prefer-lowest] [–sort-packages] [-o|–optimize-autoloader] [-a|–classmap-authoritative] [–apcu-autoloader] [–apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [–] []… (base) ..

Read more