Data dodania Pytanie
2017-10-11 10:10 Laravel Query builder, how to have 1 leading where and the other orwhere? »
I'm having a problem with my query. I want to filter through all Orders where user_id is the authenticated user. And run the searchquery on field num...
(1) odpowiedzi
2017-10-11 02:10 Laravel 5 crawler not loggin in to openweathermap.org »
I'm using https://github.com/dweidner/laravel-goutte crawler and trying to login to https://home.openweathermap.org/users/sign_in but response I'm get...
(0) odpowiedzi
2017-10-11 00:10 PHP: Undefined offset: 0, but not with dd() »
I am getting an Undefined offset: 0 error with laravel. The strange thing is that when I dd() it, it shows up. $ports = $container->getPorts();...
(0) odpowiedzi
2017-10-10 21:10 Laravel Query behave differently on IPv4 Vs. IPv6 Environment »
I have a weird situation here that I never seen before while using Laravel. I have the same code base on different set up, 1 in IPv4 VM, 1 in IPv6 VM...
(1) odpowiedzi
2017-10-10 17:10 Laravel vuejs routes »
What am trying to do is to build a laravel axios routes which have query parameters that is a sample request looks like axios.get("/user-management...
(2) odpowiedzi
2017-10-10 13:10 laravel groupby with array »
i have post with category $response=Post::groupBy('post_category','id')->get(); The above query will return all posts with category in the orde...
(2) odpowiedzi
2017-10-09 22:10 Minimize factories in test? »
Currently I am using many factories factory() in Test class, is there a way to reduce to 1 so I can only use factory(Something::class) in a test metho...
(1) odpowiedzi
2017-10-09 18:10 Deploy a laravel project in cpanel »
I'm trying to deploy my laravel project in cpanel, but I get a 505 error. I created a folder in my home directory with all the project files, except t...
(0) odpowiedzi
2017-10-09 07:10 I have the following error: "Type error: Too few arguments to function AlbumController::postEdit(), 1 passed and exactly 2 expected" »
I have the following problem when trying to edit an "album", hopefully they can help me, I'm a little frustrated haha. The Form <form name="edita...
(2) odpowiedzi
2017-10-08 19:10 Why Job class is randomly cached? »
When the Job Class is dispatched via Laravel, it is randomly using old code of Job Class that is no longer exist. Everytime I dispatch it is random be...
(0) odpowiedzi
2017-10-08 16:10 How to add a random string column to laravel migration »
I have a table called 'threads' in my laravel app, to which i want to add a new column named key with random strings of length 5. I ran the php artisa...
(3) odpowiedzi
2017-10-08 16:10 Laravel Blade custom directive? looped includes »
Let's say I have the following code in my templates @foreach($page->getBannersForPosition('bottom') as $banner) @include('partials.'.$banner-&...
(1) odpowiedzi
2017-10-07 19:10 Artisan Call in Loop »
I have a custom console command that needs to loop through some companies and make a database for each. The command works now, but only once. It does ...
(2) odpowiedzi
2017-10-07 10:10 How can I get the lang inside my controller in laravel »
I am sending a post request to a controller with axios. The languge is set to fr and all blade texts are also changed to fr but if I send a post reque...
(1) odpowiedzi
2017-10-07 00:10 Laravel relationsip with one to one »
I have the following table structure users id email .... status //foreign key from tbl_status Now in my tbl_status id name descript...
(2) odpowiedzi
2017-10-06 16:10 Laravel sort by descending or ascending with pagination »
I would like to perform a sort by ascending or descending together with pagination return \App\User:: paginate($request->per_page); how do i a...
(2) odpowiedzi
2017-10-06 12:10 Laravel 5.5 Unit testing controller method »
I am trying to setup a simple unit test for one my controller method. The goals is to test if the a view has an expected value. /** * Does the home...
(1) odpowiedzi
2017-10-06 05:10 Laravel how to keep selection option selected »
I am trying to edit the customer profile where I have a list of countries like this on the form. Whenever customer tries to edit profile, then country...
(2) odpowiedzi
2017-10-05 14:10 Registration redirct on condition based in laravel »
How can I redirect to specific path after registration in Laravel?. I want to redirect page on id after registration. please help me. Thank You, in a...
(2) odpowiedzi
2017-10-05 13:10 Anonymous function in php is not working with laravel »
I've created an anonymous function inside my method, it is just returning an item if the deleted field is equal to 0. But the problem is it is still r...
(0) odpowiedzi
2017-10-05 08:10 Decode json data to array and access the array in PHP(Laravel) »
I am trying to submit my form input as json format. After decoding json data into an array I can't access array. { "info": { "q_title": ...
(4) odpowiedzi
2017-10-04 16:10 Laravel 5.5 Conditionally adding validation rule »
I have data coming in through an AJAX post like this: data: 0: {type: 'percent', amount: 10,…} 1: {type: 'percent', amount: 200,…} As...
(1) odpowiedzi
2017-10-04 14:10 check or condition in where clause »
I want to check OR condition for the variable role_id in role_mapping table. I want to check if user_id has role_id either '2' or '3'. User with user_...
(1) odpowiedzi
2017-10-04 13:10 Send secret key to API »
My API have AUTH_KEY in .env file. I want to check this KEY trough middleware. I send all my requests to API(another domain) with cURL. And I can't u...
(1) odpowiedzi
2017-10-03 15:10 Laravel 5.5 socialite not working »
I recently tried to integrate laravel socialite with laravel 5.5 but i was getting an error : GuzzleHttp \ Exception \ ClientException (400) Clie...
(2) odpowiedzi
2017-10-03 15:10 Laravel: Count number of rows in a relationship »
I have the following relationship: A venue has many offers A offer has many orders I have the following Eloquent model to represent this: class V...
(3) odpowiedzi
2017-10-03 14:10 Unable to create thumbnail while image is uploading in Laravel »
I'm trying to create thumbnail of image while it is uploading. The problem is that the thumbnail isn't created at all. Also is not saved in database. ...
(1) odpowiedzi
2017-10-02 19:10 Sort database results by distance with Query Builder (Spatial) »
First I want to show you the current database structure. There are three tables: dishes (id, name) locations (id, name, coordinates (POINT)) dish_l...
(3) odpowiedzi
2017-10-02 12:10 how can i implement this code on laravel blade? »
how can i implement this code on laravel blade ? <td> echo '<img src="data:image/jpeg;base64,'.base64_encode( $item['image'] ).'"/>'; &lt...
(1) odpowiedzi
2017-10-02 11:10 How to provide Laravel session persistence, when pushing data? »
I have a form and it send requests to the Laravel. Laravel controller catch requests and store data in session by push method, for example $basename ...
(1) odpowiedzi
2017-10-01 16:10 Return count on an eager-loaded relation Laravel »
So I have Subject that contains Stack, which contain Question. With every question, there are answers, and I would like to count the answers on every ...
(2) odpowiedzi
2017-10-01 12:10 Can't change MAIL_DRIVER to mailgun in Laravel 5.4 »
I changed MAIL_DRIVER in .env file of production server like that: MAIL_DRIVER=mailgun MAIL_HOST=smtp.mailgun.org MAILGUN_DOMAIN=mg.xx.com MAILGUN_SE...
(1) odpowiedzi
2017-10-01 00:10 Laravel 5.5 dusk could not work »
I make a new Laravel project: composer create-project laravel/laravel testing_laravel composer require laravel/dusk --dev php artisan serve php arti...
(1) odpowiedzi
2017-09-30 22:09 Changing the type of last_activity column when using database session storage in Laravel 5 »
I've just started using the database session driver in Laravel 5.5 along with PostgreSQL, and I've ran into a slight inconvenience. I would like to k...
(1) odpowiedzi
2017-09-30 14:09 Laravel ajax deleting files fails »
IN my vue js ajax post am storing file like $imagename = sha1(time()).".".$request->profile_pic->extension(); $path = $request->profile_...
(1) odpowiedzi