bobdebower bobdebower
18
Undefined property: Illuminate\Database\MySqlConnection::$name foreach ($data as $user) { $name = preg_replace("/[^a-zA-Z0-9]/", "", $user->name); $name = substr($name, 0, 8); //...
EMfinanga EMfinanga
17
I have a search Function which search a list of number, so i want that to return also the numbers or data which are not found base on that query My Function public function device_search_receive(Request $request){ $idsString=$request-...
bobdebower bobdebower
13
Hey guys i'am trying to update my db_name but to prevent error's i'am trying Database: Query Builder i'am lost can someone help me please? Thank you! public function handle() { $data = DB::table('users') ->select('id','name')...
doncho85 doncho85
13
Hi everyone, Any idea how I can charge half of the amount as a deposit and the rest of the amount I want to charge after 5 minutes with no user input. Thank you very much in advance...
mehrdad70 mehrdad70
12
how i can fix this error Image source not readable filesystem.php 'myDriver' => [ 'driver' => 'local', 'root' => public_path(), 'visibility' => 'public', ], static $sizes = [300 ,...
boyjarv boyjarv
11
In my VUE file, the object object is actually outputting correctly the slug of the URL Uncaught (in promise) Response {url: "http://mylocaldomain.test/api/1.0/offers/%5Bobject%20Object%5D/claim", ok: false, status: 400, statusText: "B...
LaCoder LaCoder
10
Hello, I am using Laravel money https://github.com/cknow/laravel-money @money(17000, 'INR') //This returns ₹170.00 But want to return it as ₹17,000.00 Is there any way to change its internals so that it should return as required?...
asadali007 asadali007
10
Hello, everyone ,when i run this queries $flight = Flight::where('lastname','Gibson')->first(); return view('queries',['flights'=> $flight]); to get single row in the database i got error ErrorException Trying to get property 'name' of non-obje...
hesselkramer hesselkramer
10
How to make user->company->pricelist->price i only get one relationship to work but how do i get a relation of a relation to work....
elliotk elliotk
10
Hello, I have a model Basket which I want to relate twice to an Address model - once for shipping_address_id and once for billing_address_id. I was going to create those columns on the baskets table, but then I am wondering how to do the relationship...
AungHtetPaing__ AungHtetPaing__
9
Hello, i'm doing laravel e-commerce project for the first time. And faced a error when product in cart is remove from cart. Splice() doesn't work. here is my web.php Route::get('/cart', '[email protected]')->name('cart.index'); Route::post('/ca...
Jakub003 Jakub003
9
I am getting this issue, and I don't understand what I am doing wrong as I did this same exact approach for another component on this site, and works perfectly.... ViewMessages.php public $messages; public function mount($messages) { $t...
Wakanda Wakanda
9
Hi Devs, how can i get the count of reviews when am using the seRelations method, the below withCount is currently not working $product->setRelations([ 'reviews' => $product->reviews()->paginate(3), 'photos...
Wakanda replied
Solved
boyjarv boyjarv
9
public function getLandingPageRedirectPage(Request $request, $hash) { // Build the redirect url $redirectUrl = 'xxx/' . $hash; // Build the details needed for the social share link try {...
mehrdad70 mehrdad70
9
how i can fix this error public function uploadImage($values, $setting) { if ($values->hasFile('logo')) { $file = $values->file('logo'); $setting->image->create([ 'filename' => $fi...
ehsanquddusi ehsanquddusi
9
I need some help in converting this query into eloquent equivalent. The model in which the query is to be executed is named as Inventory. This field should be appended to the column list. What I am trying to achieve is, say, I already have columns a...
Rretzko Rretzko
8
I'm trying to set up transactional emails through Postmark, but hitting the following error: Connection could not be established with host smtp.postmarkapp.com :stream_socket_client(): unable to connect to smtp.postmarkapp.com:587 (Connection refused...
Snapey replied
Solved
phpMick phpMick
8
Hi, I want to get the most recent record for each user. How can I do this using Eloquent? table things: user_id ocurred_at 1 2021-05-10 10:29:49 1 2020-05-10 10:29:49 2 2021-05-10 10:29:49 2 2020-05-10 10:29:49 $results = $page->...
eyantra eyantra
8
I have the error array like in Vue errors:Object members.0.email:"The members.0.email field is required." members.0.name:"The members.0.name field is required." i can get this using for loop, but when i want to print the error...
eyantra replied
Solved
artisticre artisticre
8
I am looking for a good tutorial or advice on how to redirect after authenticated based on roles in laravel 8 fortify without jetstream. I have found one that says to create a new LoginResonse.php in App\Http\Responses\loginresponse.php which I did...
Create a New Discussion Button