Data dodania Pytanie
2017-06-09 11:06 How do I pass a pre defined callback filter in php? »
So I am trying to work with laravel collection filters and I have to filter the collections with a certain callback which looks like so: $cas...
(1) odpowiedzi
2017-06-09 11:06 How to include an association with a user »
I need to return a json object to my view. I see my subscriptions in tinker: \App\User::find(1)->with('subscriptions')->where('id', 1)->get(...
(2) odpowiedzi
2017-06-09 09:06 don't want whitespace to occur when text is too long and i got to enter »
Is there any way when your text is too long - and you break it up with new lines - to not have whitespace happen? What I need is three values to be jo...
(4) odpowiedzi
2017-06-09 08:06 Remove primary key and auto-increment in database using migration in laravel »
I have table with primary key and auto-increment field, I want make new migration to drop primary key index and also remove the auto increment field. ...
(3) odpowiedzi
2017-06-09 08:06 Accessing dynamic database in laravel »
I am working on an application. I have a master database, where I store all database names. I have made an api, which sends db_name. If that db_name e...
(2) odpowiedzi
2017-06-08 22:06 Laravel 5.4 Sessions and Auth::user() not available in controller's constructor »
I would like to use a User class throught the application. So, I would like to create CustomUser and then inject it into controllers that need it (it ...
(2) odpowiedzi
2017-06-08 16:06 laravel displaying path which matches business_id »
I am allowing business to upload images. Everything is saved into database and the only thing I need to do is retrieve images that match business_id:...
(2) odpowiedzi
2017-06-08 12:06 Laravel Auth Login by company name, username, and password »
I like user to login by company name, username, and password - they need to enter all those fields. username, and password fields are in the users ta...
(2) odpowiedzi
2017-06-08 07:06 How can print Laravel variable with echo »
<?php echo Form::open(['method' => 'POST', 'url' => ['/cart/add/'. "{{$product->product_id }}"]] )?> <?php echo Form::button('Agrega...
(2) odpowiedzi
2017-06-07 17:06 Eloquent laravel : Get JSON representation of entry in table with all his relations »
Model Ov.php <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Ov extends Model { protected $table = 'ov'; pu...
(0) odpowiedzi
2017-06-07 15:06 What's the difference between Laravel automatic injection and manually specifying the dependencies in the constructor body? »
I'm using a Repository pattern in my Laravel project. This pattern is not really explained in the official documentation, except for this snippet: ...
(2) odpowiedzi
2017-06-07 14:06 How to group similar Laravel routes using the same controller? »
I want to pretty-up my routes, ie, I have such entries: // DataTable Route::get('dt/reservations/{room_id]', 'DataTablesController@reservations')-&gt...
(1) odpowiedzi
2017-06-06 20:06 Laravel json response not showing custom object data »
I have the following class: <?php namespace App\Libraries; use Illuminate\Contracts\Support\Arrayable; class ErrorResponse implements Arrayable ...
(1) odpowiedzi
2017-06-06 19:06 Attempt to assign property of non-object in Laravel 5 »
I have the following Laravel code which receive data from an API and store them on a database. $sample = Sample::findOrFail($id); $new_sample = $requ...
(1) odpowiedzi
2017-06-06 16:06 Send notification to users when product is created in OctoberCMS? »
I have a plugin that creates a product and I want to send a notification email to all users when a new product has been created, how do i approach thi...
(1) odpowiedzi
2017-06-06 12:06 space auto add in input php »
I have made a form to modify the data with the framework laravel 5.1, everything is ok, but when I submit the form, there are two input are added a sp...
(2) odpowiedzi
2017-06-06 09:06 Replace array value with new one »
I have array of array, where i want to change date format. I am trying to get it as below foreach ($toReturn as $value) { $start_date = new Date...
(5) odpowiedzi
2017-06-05 22:06 Laravel retrieve status from pivot table »
i have tables ,Station & Equipment ,a third pivot table station_equipment with additional field "status" besides the respective table ids, the sta...
(1) odpowiedzi
2017-06-05 19:06 Invalid route in a Laravel search form »
Hi i'm following a tutorial bout how to set a search form but I'm getting a route error (NotFoundHttpException). form {!! Form::open(['method'=&g...
(2) odpowiedzi
2017-06-05 17:06 Call to undefined method Illuminate\Auth\GenericUser::fill() :: when update »
I want to update user password This is my function: public function modifiermdp(Request $request) { $userupdate = Auth::user(); $password = ...
(2) odpowiedzi
2017-06-05 14:06 Laravel Accessing Foreign Key Using Eloquent Where Clause »
I have two models called Item and Sale where class Item extends Model { public function sale() { return $this->hasMany('App\Sal...
(2) odpowiedzi
2017-06-05 10:06 Laravel development: Implication when creating MySQL database manually »
I'm in the process of building a Laravel application and I started with the database design. I implemented this directly on the commandline (mysql). ...
(1) odpowiedzi
2017-06-05 10:06 Restrict login if user is disabled in Laravel not working quite well »
I'm trying to make simple admin function to disable/enable users rather than delete them. So far I have admin function which successfully update tab...
(3) odpowiedzi
2017-06-04 19:06 How to deploy react laravel project? »
I use laravel framework as Restful API server, and react as SPA client render and for routing i have used react create app kit, I build react project....
(1) odpowiedzi
2017-06-04 14:06 Laravel 5.4 - route model binding condition »
I have implemented route model binding as follows: Route: Route::get('property/{property}', 'PropertyController@view'); Controller: public functi...
(1) odpowiedzi
2017-06-04 10:06 How to get one records that sorted by date »
I have a table like this: id product_id price date 1 1001 100 2017-05-29 2 1005 101 2017-03-30 3 10...
(2) odpowiedzi
2017-06-04 09:06 How to create dynamic route in Laravel? »
I create compare page for products, I need create route for compare page, How to create dynamic route in Laravel 5.3? For example: https://www.mywe...
(1) odpowiedzi
2017-06-04 06:06 Laravel 5.4 session is not being set if dd method is used »
I am using laravel 5.4. In a method of a controller I have setting a value in session. If I call the dd() right after setting the session the dd() is ...
(2) odpowiedzi
2017-06-04 04:06 Laravel How to make download link only for authenticate user? »
I have some files on public directory files folder. I want to send the user the link of a specific file.Right now I'm giving the link by following way...
(1) odpowiedzi
2017-06-03 17:06 How to properly add custom database support to Laravel 5? »
Suppose you want to add custom database support in Laravel 5. Whether it is MongoDB, Oracle or sqlite mod (SQLCipher). How would you go about it? Wha...
(0) odpowiedzi
2017-06-03 13:06 Laravel 5.4 Assert Mail Sent Not Working »
I'm trying to assert mail sent with Laravel 5.4 fakes. My test code is this: public function setUp() { parent::setUp(); $this->admin = c...
(1) odpowiedzi
2017-06-03 11:06 laravel maatwebsite-excel change sheet direction »
how can I change sheet direction in laravel maatwebsite excel package? I want to change from left to right. A B C D to: D C B A this is my code...
(1) odpowiedzi
2017-06-03 09:06 500 (Internal Server Error) ajax and laravel »
Hey everyone i'm having an issue editing comments with ajax in laravel 5.4 This works in a modal "press edit and modal opens" so the problem is when ...
(3) odpowiedzi
2017-06-03 00:06 Query in Laravel with Relationships from blade? »
I have the following tables Users request servers Which are related in the following way. User has many request Sever has many request Now wh...
(1) odpowiedzi
2017-06-02 20:06 auth() method null on Exceptions »
I was playing around with Laravel 5.4.23 and i came across this scenario when i hit a 404 page the auth(), auth()->check(), auth()->user(), and ...
(1) odpowiedzi