skip to Main Content

PHP Laravel SQLSTATE[HY000]

I have a some problem... ORM When I use php artisan tinker, use App\Models\User $u = new User(); $u->title = 'sale'; $u->content = 'auto ...'; $u->price = 2500; HERE ARE GOOD EVERYTHING, BUT... when I type command $u->save(); I see…

VIEW QUESTION

Laravel – Undefined variable $tag?

I started to learn Laravel a couple a days ago but I have error in code somewhere where it says that $tag variable is undefined, my Blade template is below: @props(['tag','size'=>'base']) @php $classes = "bg-white/10 hover:bg-white/25 rounded-xl font-bold transition-colors duration-300";…

VIEW QUESTION

Opening a modal in livewire – laravel

I am designing a login form. when the user clicks on login button a modal should popup. I have used livewire emitsTo event. <button wire:click="$emitTo('login','loginModalOpen')" class="text-primary px-6 py-[13px] font-bold">Sign in</button>. This is the code for button. namespace AppLivewireV2Auth; use LivewireComponent;…

VIEW QUESTION

laravel -> file_put_contents(/var/www/laravel/storage/framework/views/9f1dc9629406f3376fc417dd6985a806.php): Failed to open stream: Permission denied

docker-compose.yaml version: "3.8" services: nginx: image: "nginx:stable-alpine" ports: - "8000:80" volumes: - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro - ./src:/var/www/laravel depends_on: - php - mysql php: build: context: dockerfiles dockerfile: php.Dockerfile volumes: - ./src:/var/www/laravel mysql: image: mysql:8.0 ports: - "3316:3306" env_file: - ./env/mysql.env composer: build:…

VIEW QUESTION
Back To Top
Search