Data dodania Pytanie
2017-04-07 08:04 Laravel 5.3 : hidden fields are returned in JSON response »
First of all I've searched the web for an answer and could not find any which quite astonished me. Maybe I did not search for the right terms, please ...
(1) odpowiedzi
2017-04-06 19:04 Mysql query, more specifically with Laravel eloquent »
I think I've hit my peak on mysql query knowledge. I can't seem to generate, what I suspect, is a complex query. Here's a little background on my setu...
(3) odpowiedzi
2017-04-06 15:04 Laravel error: NotFoundHttpException in RouteCollection.php line 161 (resource) »
If I use the below method, it works fine. Route::get('create', function () { return view('post.create'); }); However, if I use the resource, it...
(2) odpowiedzi
2017-04-06 12:04 Laravel 5.4 custom join (raw sql) mapped to an Eloquent Model »
Can somebody tell me how i can map the result of a Join made with RAW SQL or the Query Builder to an Eloquent Model ? Teams has many Users who has Ma...
(1) odpowiedzi
2017-04-06 12:04 Laravel oauth user redirection after registration »
all. I'm just trying to implement Single sign-on server using Laravel and passport app. What I'm trying to achieve: A single sign-on server who liste...
(1) odpowiedzi
2017-04-06 09:04 Only User Model is saving with empty Values to database »
In Laravel 5.4 when I try to save User model to the database the values are not saved. I've set the fillable property as well. It was working in Lara...
(3) odpowiedzi
2017-04-05 16:04 Eloquent MYSQL statement : WHERE NOT(A OR B) »
I`m working on date-range-overlap functionality that can be written in 13 positive conditions to check if the date intervals overlap : https://en.wik...
(1) odpowiedzi
2017-04-05 12:04 Laravel - Create custom name while uploading image using storage »
I am trying to upload a file using laravel Storage i.e $request->file('input_field_name')->store('directory_name'); but it is saving the file in...
(5) odpowiedzi
2017-04-05 12:04 How to make li class active dynamically in laravel? »
My HTML code is <div id="sidebar"><a href="#" class="visible-phone"><i class="icon icon-home"></i>Dashboard</a> ...
(2) odpowiedzi
2017-04-05 00:04 Uncaught TypeError: callback is not a function while implementing pusher with laravel »
I'm making a simple chat application, I get this error while connecting to pusher, I'm using laravel 5.4 Uncaught TypeError: callback is not a functi...
(1) odpowiedzi
2017-04-04 19:04 Laravel: Send Data to Controller via AJAX Without Form »
I need to send data via JS to a Laravel controller on a button click. I'm not using any form because the data is being created dynamically. Every tim...
(1) odpowiedzi
2017-04-04 14:04 How can i create deleted controller again with same name? »
Is it possible to create same deleted controller again with same name in laravel? I had one controller with name of SellerController, unfortunately i...
(1) odpowiedzi
2017-04-04 10:04 Csrf form verification laravel error »
when doing my laravel inscription form it work totally fine, suddenly i have an error with csrf verification form after adding verification email insc...
(2) odpowiedzi
2017-04-04 10:04 How to allow $user variable in a blade view page in Laravel? »
I have this page support.blade.php in views folder and I'm using Laravel. I can't echo out $user->id or $user[id] in this page and I get undefined...
(3) odpowiedzi
2017-04-04 08:04 Multiple Where on Laravel not working »
Can anyone help me fix this code ? public function caritindaklanjut(Request $request){ $halaman="tindaklayanan"; $cari = '%'.$request->sea...
(2) odpowiedzi
2017-04-04 06:04 How to implement infinite scroll in my vue js »
I currently learning combining laravel with vue. This page should be fetching post data from server and showing in user timeline. I am successfully ge...
(3) odpowiedzi
2017-04-03 22:04 Eloquent model inheritance hierarchy »
I have a case where 2 eloquent models should inherit properties from a User model, but the User itself should not exist as a standalone instance. (Men...
(1) odpowiedzi
2017-04-03 17:04 Dynamically sorting specific JSON nodes and returning in PHP function »
I'm trying to sort the a specific node inside a json object and return it in a PHP function that looks like this. { "2007":{ "number-xx" ...
(2) odpowiedzi
2017-04-03 16:04 Laravel 5.4 crate model, controller and migration in single artisan command »
I can create model and resource controller (binded to model) with the following command php artisan make:controller TodoController --resource --model...
(1) odpowiedzi
2017-04-03 16:04 What is the equivalent query of laravel on this? »
This is the native sql: $sql = "Select count(name) from users Where email = 't@t.com' and user_id = 10"; I have this laravel code: $checker = Cust...
(3) odpowiedzi
2017-04-03 10:04 Row based Access control for Laravel Results »
I'd like to setup a row based access control on my laravel application (currently 5.2, waiting for 5.5 lts). This could be done in the controller, but...
(1) odpowiedzi
2017-04-02 16:04 Post request from another domain results TokenMismatchException »
I'm working with a bank api. The bank send a post request to my website but does not return there is not a token field is their request and I am face...
(1) odpowiedzi
2017-04-02 15:04 Laravel - belongsToMany with multiple tables »
I created 3 Database Tables: users - id - username - ... messages - id - title - message messages_user - messages_id - user_id - receive_u...
(1) odpowiedzi
2017-04-02 14:04 Laravel - diffForHumans in German »
I am trying to display the created_at attribute using Carbon's diffForHumans() in German in laravel 5.2. created_at is stored in the database as: 2017...
(1) odpowiedzi
2017-04-02 01:04 JSON: getElementById returns Undefined »
I have a text input where I write a barcode it returns the name and the price from the database. My code looks like this: View: <script> func...
(1) odpowiedzi
2017-04-01 23:04 Download file using token based API »
I'm creating a web application with Vue.js(front end) + Laravel(back end) and I structured the whole app to communicate with the back end through api ...
(1) odpowiedzi
2017-04-01 21:04 Laravel and Passport, random 401 errors »
I'm writing a single page web application. I'm using Vue.js in the frontend and Laravel in the backend. I included Passport token authentication and...
(0) odpowiedzi
2017-04-01 14:04 Can we store value of @yield in a variable »
I have a simple question can we store the value that will be yielded in a variable. for instance an example $var = @yield('title') If no, then is ...
(2) odpowiedzi
2017-04-01 07:04 Descending order in yajra not working properly for second page onwards »
For ascending sort , yajra is working properly(means response has properly sorted data). I have an array like this: suppose i have : $order = $order...
(0) odpowiedzi
2017-04-01 03:04 Continue PHP Operation After User Exits Early »
I'm using Laravel, PHP7, PHP-FPM, APCu and NGINX. I have an HTML form where a user can upload a file, it connects to Upload.php. File Process: val...
(1) odpowiedzi
2017-03-31 17:03 Laravel 5.3 - Pull data of polymorphic table in one query? »
Using the polymorphic relationship likeable, I have setup authors and books as likeable_type in likeable_items table. Here are the models: class Lik...
(2) odpowiedzi
2017-03-31 09:03 Laravel 5.4 updated syntax »
Hi guys got some problem.... Call to undefined method Illuminate\Database\Query\Builder::udpate() here's my update code... DB::table('gpl_team')-&...
(2) odpowiedzi
2017-03-31 08:03 Passing Array (not Object) for Auth in Laravel »
I've some problem with passing array, please give me some advice so I can solve this matter. Here is My Controller: $keluhan_list=DB::table('keluhan...
(3) odpowiedzi
2017-03-30 21:03 Displaying JSON object on blade template »
I'm trying to display a JSON object that is returned to my blade template that should look the output below 2007 | Kanye | UltralightBeam 2008 | J...
(2) odpowiedzi
2017-03-30 17:03 Having troubles posting form data with ajax to controller action (laravel) »
Route: Route::post('admin/cms/create','CmsController@createmenu'); Controller's action: public function createmenu(Request $request){ $men...
(1) odpowiedzi