Data dodania Pytanie
2017-08-01 08:08 Display user details with their average rating in laravel »
In my case, I have two table like users table and rating table. In user table, I'm storing user's personal details like name, email etc, In rating t...
(2) odpowiedzi
2017-08-01 05:08 DB update query in Laravel? »
I'm trying to update the hours_worked column in daiy_attendance table using in_time and out_time in same table. in_time and out_time already stored in...
(1) odpowiedzi
2017-07-31 21:07 MySQL Double many-to-many on an Entity »
I have a project where I have Products and SKU's. Each Product has one or many SKU's. I also have Shops that can have many to many Products, So a Pro...
(2) odpowiedzi
2017-07-31 09:07 Custom function in Laravel return NULL but on var_dump is not NULL »
I have custom class in laravel 5.4 app which should return hashed secret. The class is class Hash { // Unencrypted secret private $secret; ...
(2) odpowiedzi
2017-07-31 08:07 How do I write the following SQL query in Laravel using Eloquent? »
I want to write a query in Laravel to retrive all the posts that a particular user has viewed. The user_id and the post_id is saved in the table named...
(2) odpowiedzi
2017-07-31 07:07 Laravel 5.4: How to order by count(column) in eloquent? »
I am trying to display the names of assignee arranged by the most tickets assigned_to. $accesses = Access::where('state','=','Assigned'); $all = Rep...
(4) odpowiedzi
2017-07-31 02:07 Add sorting function on table tag »
I'm using Laravel 5.4 So I wanted to know if I'm able to sort things in my table without actually using queries. Here's my table structure: <ta...
(1) odpowiedzi
2017-07-30 22:07 Return model with laravel when it was created »
I need to send a new model saved as json to front but I can't see column organizationid in response This is my model class Organization extends Mod...
(2) odpowiedzi
2017-07-30 21:07 Laravel 5.4 Notification Broadcasting »
I've set it up with the database, and everything is inserted correctly there. and I am listening correctly with Laravel Echo, and thats being recorded...
(1) odpowiedzi
2017-07-30 17:07 Stripe API is extremely slow for listing invoices »
I am building Stripe SaaS , that retrieves all invoices for registered users and do some statistics My server on Godaddy shared server with 512mb ra...
(1) odpowiedzi
2017-07-30 13:07 Laravel JQuery AJAX POST get data »
I have a code: var bet = { tournament: '', bo: '1', bet_team: '2', betted: '3', potential: '4', percent: '5' }; $.ajax({ ...
(2) odpowiedzi
2017-07-30 12:07 Foreign key is incorrectly formed »
When I changed my primary key from increments to string (user_id) i now got an error in my migrations. I dont seem to see where I went wrong. my migra...
(2) odpowiedzi
2017-07-30 06:07 how to put URL inside of laravel blade »
I have database structure like Book & download link .. $book= new Book(); $book->name = $request->Input(['name']); $book->download_link ...
(3) odpowiedzi
2017-07-29 20:07 How do i combine a HTML Select with a Switch statement »
I want to create a 'Sort By' List in which whatever list item is selected then my laravel php switch statement will come back with the correct query.....
(3) odpowiedzi
2017-07-29 10:07 How to access data some specific Controllers in Laravel? »
For sharing data with all views I read in documentation we can create View::share('key', 'value'); I found that also we can make View Composer to s...
(3) odpowiedzi
2017-07-29 09:07 How to use token authentication in laravel web page »
I am trying to use JWT for laravel web page instead of session. so I made some changes. Installed jwt-auth and configure Then changed default guard ...
(4) 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 How can use a where in firstOrCreate in Laravel 5.4 »
How can I use a code like this: $db = ModelName::firstOrCreate(['bot_id'=>10, 'bot_text'=>$botTxt->id]) ->where('updated_at','<=', Ca...
(1) odpowiedzi
2017-07-28 19:07 Laravel trying to query multiple tables »
Not quite sure how to fix this and if this even is an issue with my query or database, so here it goes. There are 3 tables, products, relations and ta...
(1) odpowiedzi
2017-07-28 14:07 Android retrofit 401 after successful login / register »
After I Login / Register in my app, I try to call a get route, which shall get me some data, but if I click on the button I do get a onResponse: ...
(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 22:07 How to display HTML through Laravel DataTable? »
I am trying to get some HTML with my dataTable request. I use Laravel DataTable library. When I get the data, the page displays the HTML as a normal ...
(2) 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 16:07 Laravel fopen() cant create/read file »
so I have this Laravel project and I want to export an array to a json file to use it later. My permissions on the storage folder are 777 but when I d...
(3) 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 13:07 How to wrap whole class in transaction in PHPUnit? »
My idea is to specify in each test class parameters, depends how we want to wrap test in transactions. I use Laravel 5.1. use DB; class TestCase { ...
(0) odpowiedzi
2017-07-27 12:07 Laravel Array Validation »
$rules = [ 'user_id' => 'required|exists:users,id', 'preparat_id' => 'required|exists:preparats,id', ...
(2) 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 18:07 Laravel: use an url instead route in javascript »
In Laravel 5.4, I need to use an url instead route in a javascript file. Right now I have a blade file with this code: @section('after-scripts') ...
(1) odpowiedzi
2017-07-26 14:07 for loop not working »
I have this code I want to always begin from 1 but it is not working it continues 5 6 7 8 and so on. I want the value={{k}} always start from 1 &l...
(3) 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