Data dodania Pytanie
2017-10-04 14:10 Order eloquent results keys before showing the data in Laravel »
I'm actually trying to re-order the result of a query in Laravel. Here's what I want to achieve: The data is a json response. They will be injected i...
(0) 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-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 Laravel SOLID using Repository Pattern »
I want (at this moment tyring) to follow the SOLID principles, but my mind is going to blows up. I read a lot of posts about Repository Pattern in La...
(2) odpowiedzi
2017-10-03 13:10 Interface 'Symfony\Component\HttpKernel\HttpKernelInterface' not found in laravel »
I upload laravel project in server, After upload show HTTP ERROR 500 in http://myWebsite.com. I run this code: sudo chmod 755 -R laravel chmod -R o...
(0) odpowiedzi
2017-10-03 11:10 Laravel form array validation »
I need some help for validating my form with Laravel 5.4. My form: {{Form::bsText('general[firstname]')}} {{Form::bsText('general[lastname]')}} ...
(5) 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 16:10 How to send data from client to redis and then after to laravel »
I'm using laravel and redis for real time chat. I can fire event from my laravel and receiving that data to client side. My problem is how can i sen...
(1) odpowiedzi
2017-10-02 13:10 Avoid "auto login" when password is reset »
I am working on a Laravel project. I was not the original developer, so if I make a mistake, forgive me and explain what it was please. In this proje...
(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-02 08:10 no accessToken and accessTokenSecret on apps.twitter.com »
Posting image + status with the Twitter API using php I was following this answer but everywhere I find that you need consumerKey, consumerSecret, ac...
(1) odpowiedzi
2017-10-01 19:10 Laravel: Can't pass a Browser test using RefreshDatabase trait »
My test will fail if I use RefreshDatabase trait. Without the trait -- test will pass but data remains in database. I'm using: Laravel 5.5 (a fres...
(0) odpowiedzi
2017-10-01 16:10 Show formatted properties in Laravel's blade template »
Let's say, I have some Model with updated_at attribute. I want to show it in template like this {{ $model->updated_at }} This can be used in man...
(2) 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 05:10 Carbon - Getting only part of a TimeStamp »
I have a timestamp in my database: 2017-10-01 04:32:37 Now, I need to grab only the date, so like "01/10" I'm trying to do this with Laravel's Carbo...
(4) 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
2017-09-30 13:09 Laravel eloquent updateOrCreate(), do something only if create? »
I use in my laravel 5.5 app Model::updateOrCreate(), it works, but by 1 parameter I wish to do something only if entry is creating and not updating mo...
(1) odpowiedzi
2017-09-30 10:09 php database limit amount of request per minute »
So i have this situation where i need to access a database, but this database is actualy used for another app. And the owner has said that i can only ...
(0) odpowiedzi
2017-09-29 17:09 laravel whereHas results weird »
product model public function country() { return $this->hasMany('App\Models\ProductCountry', 'product_id', 'id'); } the controll...
(5) odpowiedzi
2017-09-29 12:09 Filter collection using like and wildcard »
I need to get all files which starts with desired letter, I'm trying to use a ->where filter adding 'like' as operator but wildcards doesn't work. ...
(1) odpowiedzi
2017-09-29 06:09 Android chat with Socket.io, Laravel, and Redis »
I m very new to the whole socket stuff using node. What I am trying to achieve is make a chat application using Socket.io on Node Js, with Laravel and...
(0) odpowiedzi
2017-09-28 23:09 Is it bad practice in Laravel to specify where() and find() in one query? »
In controller, which shows simple users User::where('is_admin', false)->find($id); In controller, which shows admins User::where('is_admin', tr...
(1) odpowiedzi
2017-09-28 22:09 Laravel - Save HTML Dom-Parser response to database »
I have managed to get some HTML from a website using HTMLDomParser (http://simplehtmldom.sourceforge.net/): $html = HtmlDomParser::file_get_html('htt...
(1) odpowiedzi
2017-09-28 10:09 View [layouts.default] not found - Laravel »
I am trying to run my laravel project but it showing error that view not found. My welcome.blade.php file is @extends('layouts.default') @section('...
(1) odpowiedzi
2017-09-28 08:09 Laravel event broadcasting with socketio and redis is not working in laravel 5.4? »
I am trying to show realtime message notification count when user logged in to the website. For this I am using socketio, redis and laravel event. Bu...
(1) odpowiedzi
2017-09-27 17:09 Calling stored procedures in Laravel 5.5 using SQL Server with output »
I have the following stored procedure: declare @CodigoRet int exec Generator 'LancaContaContabil', @Codigo = @CodigoRet output Select @CodigoRet ...
(2) odpowiedzi
2017-09-27 15:09 Laravel 5.5 send data to view without reloading page »
In my view I have some data that I can use $data in this $data are several other arrays with a key. Now my goal is to when a user selects something fr...
(1) odpowiedzi
2017-09-27 15:09 Laravel @include a blade view via ajax »
I have a page which will @include some content, I want to @include that blade view file using ajax request. How should I do it. Basically, the view ...
(4) odpowiedzi
2017-09-27 11:09 Laravel migrations find which migration fails »
So when you run php artisan migrate and it fails, it gives you the errors in the terminal. Is there a way to see which migration file causes the erro...
(4) odpowiedzi
2017-09-27 11:09 Laravel 5.4 and Datatables - Ajax - Saving / Posting Data - Server Side »
I'm currently trying to save data from datatables back to the database. I'm working on form fields within the datatables and would like to change the ...
(1) odpowiedzi
2017-09-26 23:09 Laravel: ERR_TOO_MANY_REDIRECTS »
I'm trying to code a basic authentication system in Laravel, its resulting in a redirect loop. First I just visit the "localhost" domain, it then sen...
(1) odpowiedzi
2017-09-26 18:09 How to handle a Login event for a specific auth guard? »
I have a Laravel 5 application with multiple authentication guards. I created a Illuminate\Auth\Events\Login event listener which handles the login e...
(1) odpowiedzi
2017-09-26 17:09 Laravel package session variable not saving with ajax call »
I'm building a package called under-construction. When this package is activated in a config file the site will be underconstruction only people with ...
(1) odpowiedzi