Data dodania Pytanie
2017-07-29 14:07 Query with two laravel models and return result »
I have two models, User and Post User Model: public function posts() { return $this->hasMany('App\Post'); } Post Model: publ...
(1) odpowiedzi
2017-07-29 08:07 How to join tables in laravel 5.4 »
In my case, I have 3 tables like Question, options, and answers Questions table |id | question_name| ------------------------------ 1...
(3) odpowiedzi
2017-07-29 07:07 Laravel 5: How can I load database values into the config/services.php file? »
I have a multi-tenant app I'm working on and while adding the socialite package, I tried to load the custom facebook client_id and client_secret for t...
(1) odpowiedzi
2017-07-28 20:07 How to use two foreachs in laravel? »
I have a category table, it is organized by 'parent_id' and 'categoryid'. I need to organize it in a list, where I group the parent class with the dau...
(1) odpowiedzi
2017-07-28 19:07 laravel socialite get user informations »
I can get user's informations name, gender, etc, but when i try to access user's birthday login doesn't work, this is my code for LoginController pub...
(0) odpowiedzi
2017-07-28 12:07 Laravel and algolia, ignore array if null »
I have this code: public function toSearchableArray() { $data = $this->toArray(); $data['_geoloc'] = $this->_geoloc->toArray(); ...
(3) odpowiedzi
2017-07-27 21:07 Laravel textarea has white space and not showing value from db? »
I have a simple textarea tag like this: <div class="form-group{{ $errors->has('main') ? ' has-error' : '' }}"> <label id="main2" for=...
(1) odpowiedzi
2017-07-27 14:07 Laravel 5: Replace string in query results (Eloquent ORM) »
Is it possible to return all columns from a table, but if a string (value) contains a specific word, remove that word? For example, I have a table li...
(1) odpowiedzi
2017-07-27 12:07 Laravel's polymorphic relationships performance »
Does anyone have any experience with performance of polymorphic relationships in Laravel? I need to have a settings tables for few different models, p...
(2) odpowiedzi
2017-07-26 09:07 Laravel sql take top records and get it's field values average »
how can I be able to get top records e.g top 10 top 5 top 3, I've tried to use AVG on my query but it returns the whole average of a persons record. ...
(1) odpowiedzi
2017-07-26 08:07 How to count number of views for a Post (Laravel Event Listener)? »
I am trying to count number of views for my products. For that there is a column view_countin my products table. I am trying to implement it with even...
(1) odpowiedzi
2017-07-26 06:07 how to count percentage in laravel »
I'm currently working on feedback system where the user can give feedback, In my case, I have to count percentage for each option like the question ha...
(1) odpowiedzi
2017-07-25 14:07 Routes for users and admins separation Laravel »
I'm trying to separate user from admin and forbid access of user to admin section. My directories structure is resources/ -views/ --site/ ...
(2) odpowiedzi
2017-07-25 11:07 Laravel : retrieve "Many To Many" associations based on a version criteria »
I'm using laravel 5.4 to develop a small tool that shall keep track of various objects along their lives. A single object is identified by it's uuid. ...
(0) odpowiedzi
2017-07-25 11:07 How to display count(*) in laravel 5.2 »
I got a response as follows. I need to the print the "count(*)" field along with some other data like "Duke (2)" where 2 is the count. How can I print...
(1) odpowiedzi
2017-07-24 20:07 How to get a related model through a pivot table in Laravel? »
i have a bit of a problem in my Laravel 5.4 application, in my database i have several entities that are related through a central model called Conten...
(1) odpowiedzi
2017-07-24 11:07 Custom .txt Log file using Laravel5.4 »
Does anyone have idea or snippet to create .txt file in Laravel 5.4 I want to store data like IP, browser info, url requests etc. want to make a custo...
(1) odpowiedzi
2017-07-24 05:07 Angular 4: CORS Issue on Post using ionic 3 angular 4 »
I really appreciate the guidance I'm getting from the community. Hence, i would like to ask a question please do note that I have exhausted all my res...
(2) odpowiedzi
2017-07-23 20:07 Laravel Modules and dynamic menus »
I'm using Laravel 5 with nWidart/laravel-modules. My problem is how populate sidebar menu with entries that comes from modules? For example, Wordpress...
(0) odpowiedzi
2017-07-23 20:07 Pass multiple parameter by POST axios vue »
I am trying to pass a props value and an form value to the backend controller using axios. But it only sends form value not the props value. My code i...
(1) odpowiedzi
2017-07-23 18:07 How to convert mysql query to query builder for laravel 5? »
I am trying to get all duplicates rows from Customers Table I want to convert the following mysql query into query builder to use in laravel 5. And I ...
(2) odpowiedzi
2017-07-22 17:07 SELECT and COUNT with LEFTJOIN in mysql or Query Builder »
I have table Company +--------------------------+ | id | companyname | +--------------------------+ | 1 | JACK | | 2 | ...
(2) odpowiedzi
2017-07-22 09:07 Laravel vendor publish scout doesn't publish scout.php in the config folder »
After running,composer require laravel/scout Added this in the config/app.php configuration file: Laravel\Scout\ScoutServiceProvider::class, Final...
(2) odpowiedzi
2017-07-22 08:07 How to set default value if nothing found in the object »
I was trying to show list of products and with that i wanted to show the no of sells of that product. Here no_of_sell has product_id. The problem is...
(4) odpowiedzi
2017-07-21 17:07 Laravel Route::group passing incorrect variables »
I am having a very weird issue, I have setup a route group for wildcard subdomains and it is now passing the subdomain variable through to my controll...
(1) odpowiedzi
2017-07-21 15:07 what's wrong with my create view in laravel »
I can't figure out what's wrong with my create view. I need the submit button to redirect me to my show view so I can see all the created tags. Here a...
(1) odpowiedzi
2017-07-21 15:07 API response in Laravel decode issue »
i have the following route: Route::get('/verifica-dominio', function() { $dom = Input::get('dominio'); $dominio = explode('.', Input::get('dominio'))...
(2) odpowiedzi
2017-07-20 17:07 can`t access laravel Query Builder result from view »
I can`t access the values from this variable $post from controller: in blade view: @foreach($post as $p) <div class="col-md-3"> ...
(1) odpowiedzi
2017-07-20 17:07 Why is artisan make:controller not making controllers? »
$ artisan make:controller fooController Controller created successfully. A controller is not created under app\Http\Controllers and git status does ...
(1) odpowiedzi
2017-07-20 09:07 Laravel form displayed as raw text »
My problem is probably related to server configuration problem. This is the issue. I am developing a Laravel website that works fine when developing o...
(1) odpowiedzi
2017-07-19 17:07 My Laravel 5.4 Logged in User Sessions wont persist »
I'm having this weird issue with my app, it can't persist logged in user session using the Auth facade. Example, in my header view I put logged in use...
(1) odpowiedzi
2017-07-19 15:07 Class 'Form' not found in Collective Laravel 5.4 »
I installed Collective Laravel but I got Error Class 'Form' not found .I tried to installed but It's not working. Please Help. I used composer update ...
(1) odpowiedzi
2017-07-19 13:07 How can I show data from Datatables with Laravel 5.4? »
I'm stuck with datatables and the plugin yajrabox for Laravel 5.4. The goal is to load with ajax and the plugin the data from the users tables in my d...
(1) odpowiedzi
2017-07-19 12:07 How to get value of data attribute from button to controller in laravel »
How can we get the data attribute value from button to controller in laravel My button <input type="submit" value="Add click" name="submit" id="su...
(2) odpowiedzi
2017-07-18 14:07 Laravel - $query->where all the ids in an are matched »
I am working on an API endpoint that returns a list of users that have all of the given services ID's. In my case: Users can have many services Tab...
(2) odpowiedzi