Creating a new account with a soft deleted email

If I soft delete a user, I want another user to be able to create an account with the same email that is soft deleted. I figured the default php ar...
10

Sorting posts by month

So I want to sort all posts by month, some kind of posts history by months , for this I want to use the "created_at" field of my Post mod...
03

HasOne could not be converted to string in file

Hi, I have the following code in a custom class doing an Eloquent query (I hope that's right!) public function imposition...
08

Eager loading doesn't work

In my controller I try to load relations like this: $product->load( 'variants', 'variants.product...
06

String value showing with [" "] characters

So I just noticed this bug, when building the subject for my mailable the string is showing like this : Nuevo reporte de bug en ["...
04

Laravel Ajax 419 Unknown Status

I have even added csrf token to the Ajax and it still would not work. Here is the Ajax: $('.clike').each(function(){ $(this).on(&quo...
07

Zend Bar

I'm really hoping someone can help me out here. There's Zend bar appears at the bottom of all my Laravel projects and only my laravel proje...
03

Error while trying to update multiple has many relation!

Iam trying to update 'sortOrder' column based on a given list of ids. For example, if the given IDs are: $orderList = ['id' =>'1'...
05

How to pass AJAX data to Laravel Controller

Here is my AJAX: $('.clike').each(function(){ $(this).on("click", function(e) { e.prevent...
05

Posting in Database comes with unwanted quotation marks

I'm currently facing a weird case in Laravel where I input something to the database, but stores it with unwanted quotation marks. Keep in mind I'v...
08

Bring sub collection and it subcollection... n level?

in document module, i can create n level document, such as a document under anther document, another one under child document..etc upto n times. Is...
03

Set Laravel Cookie to have a random string as value until deleted

So here is my make cookie from controller: $cookie = Cookie::forever('name', str_random(10)); So I was thinking, Wh...
01

How to make "global" function ?

Hi guys I made a function to detect country name and country code for users. I want to use this function in many places like Controllers and Middle...
03

how to categorizes data by month of birth

i am creating a birthday page and wants to separate data by month [{"id":1110199718,"timeline_id":1110199718,&qu...
04

SQL query

Hi all I need to query a table with a value that is between the value of two columns e.g. $record = table_1::where([['column_...
17

Request redirect back to url#anchor

I have a request with rules which is used in combination with a form located at the bottom of a page. How can change the request redirect back-link...
16

Namespaces in PHP and Classes with same names

Hi. Could you please help me understand best practice of naming classes in PHP using namespaces? Example: I have two classes called the same...
02

Undefined variable: p_accounts occurs

Guys this is my controller public function open_personal_account() { $p_accounts = Personal_account::orderBy('crea...
05

Phpunit testing not firing?

-bash: phpunit: command not found Tried: phpunit and cd vendor/bin th...
03

whereIn with REGEX or Wildcard?

$materials = Material::where('status', 'Approved')->whereIn('category', $subscriptions)->get()->sortByDesc('created_at');...
01