Schema::create('costs', function ($table) { $table->increments('id'); $table->unsignedInteger(...
Hi, Please refer below link and help me: https://stackoverflow.com/questions/58338282/cannot-get-the...
Dear All, I have query builder : DB::select("select `id`, `user_name`, `user_email`, (select s...
Hello! I'm in practice mode with Laravel, and I've tried this at least 80 different ways, based on t...
Hi, Is it possible to create a fake relationship between two models? Let me explain! I have two mode...
Hello everyone, I am new to Laravel. I want to create a property search engine. my properties has an...
Hi there, How can I convert this SQL into PHP? UPDATE cashbooks SET amount = amount - (SELECT amo...
I'm new with relationships and eloquent. I still don't really understand working with eloquent and p...
[I've used whereRaw on Subquery] Dear Sir, I have some problem on below, $withRanks = DB::...
How to insert in database number of the seat from the bus and check what seats are available. What I...
Hi, I'm trying to convert a query to models: My query: $article = DB::table('Article as A') ->joi...
Hi, I'm using Tinker to test my models, and whenever i attach something to a model, i need to exit t...
my Controller <?php namespace App\Http\Controllers; use App\Task; use Illuminate\Http\Request;...
i have a input fields to insert names to the database at the moment it works like every time i enter...
I have register form, in that form there is select form which decide if user is farmer or buyer. If...
Je veux insérer des données dans ma base de données mais lorsque je lance mon artisan, on m'écrit ça...
We like to implement a system for a Network Marketing Company that operates in several countries but...
I'm trying to populate tags from the database into a select2 field. The data is returned in the insp...
Ok, so I'm trying to create a support code that expires and is updated with a random code every 24 h...
I have a slightly complex query that I first made in flat mysql, but I don't know how to translate a...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community