Category "laravel"

Display hidden not working with flex in Tailwind

I'm trying to hide a div in mobile, and display flex with md screen & above, here's my code: <div class="hidden md:flex"> <x-navbar.nav

How to install GD Library? Laravel at AWS Lambda with Bref

When using Intervention\Image in laravel on lambda The following error has occurred. By the way, it works in the local environment. I have to add gd. [2021-08-

How to pass a value from Laravel blade to a vue component?

I am working on laravel / vue project and i want to pass a value from laravel blade to the vue component but i get this error : Missing required prop: "id" at

Use identifier in PHP and how does it affect the logic

Use identifier is used when we want to send some outer environment variables inside closures so I have a scenario. $invoiceList = UserInvoice::where('user_id',

Is a way to echo translation string in laravel?

I want to translate text inside the button. <?php if ($product->category_slug === 'bramy-przesuwne' || $produc

Ordering Relationship field in CreateOperation - Backpack for Laravel

I wanted to order by name the Categories (relationship field) of my CreateOperation. It is ordered by default by id. protected function setupCreateOperation()

How to import individual icons with FontAwesome v6

In my web app built on Laravel, which under the hood uses an npm/Webpack build process, I'm currently using the SCSS icon sheet versions of FontAwesome like thi

Laravel query builder inject column value into Carbon query

I've got a query that I'm running in my project on a model called Domain, it returns all domains where the status column of a domain matches complete and a date

Laravel Scout (Meilisearch) - Says imported data, but doesn't

I've installed and configured meilisearch + Laravel Scout package. My Model: class Post extends Model { use Searchable; } When I run php artisan scout:impo

Laravel validate() method returns index html page when false

I'm building my first laravel API and when I try to validate some mock form data using Postman with POST method, the application returns to me the HTML of the i

Laravel Jetstream - How to join a default team at registration

I am trying to change Laravel Jetstream's logic in order to join a default team at registration rather than create a personal team. I found the method that does

Laravel nova / add second login

Im creating a Website with Laravel nova. When installing nova by default you get a login, a users table and a dashboard. Now I need to add a second login for an

How to add OR for adding multiple gate permissions at construct method of controller

I'm working with Laravel 5.8 and I have created this method in the Controller: public function __construct() { $this->middleware('can:see-brand-r

Is it possible to rename Teams in Laravel Jetstream?

In the old Laravel Spark (now Spark Classic) you could utilise a configuration method Spark::prefixTeamsAs('bands'); a new project I'm working on uses the new L

Bind JSON attribute with livewire

I have a Test model, with the JSON attribute inputs, which is a flat array of strings (e.g. ['foo', 'bar', 'baz']). I'm trying to bind this field up to Livewire

ReactJS app inside Laravel's public folder .htaccess configurations

I am hosting a React application inside the public directory of a Laravel app where: /public_html/ app bootstrap config

Laravel - Method Illuminate\\Support\\Collection::makeHidden does not exist

I want to hide the columns password & OTP ,that is included in $uses result. Actually these 2 columns are part of the users table. I've tried like below. B

Laravel pass view field input data to controller and then return calculated value in disabled field

So what i want to do is take values from user input, then do some calculation with it inside the controller with method and that method return value to be displ

JS Fetch Single Record From Laravel Controller

I work in laravel and trying to get the response from the page. This is the controller in question: public function counter($id) { $toSearch = $id * 10000;

Save adminlte customization state

I am using AdminLte. You can customize web for yourself(dark mode, nav compact, ...).docs But when I go to another page all customized state removes. How to sav