Data dodania Pytanie
2017-06-20 15:06 Laravel: AJAX request endpoints in routes/api.php or routes/web.php? »
I have a Laravel app where I fetch and update data asynchronously from my frontend. My question is: Do the endpoints for the AJAX requests go into the...
(2) odpowiedzi
2017-06-20 15:06 Laravel Eloquent relationships with Extended Models »
I'm working on a site that has extended Models, eg. class Asset extends Model { public function project() { return $this->belongsTo(Project...
(1) odpowiedzi
2017-06-20 11:06 Working with routes and Entrust in Laravel 5.2 »
I'm trying to work with Entrust ACL in my application running on Laravel 5.2. I've installed the package following the instruction on GitHub page of E...
(1) odpowiedzi
2017-06-20 10:06 Laravel Model Object Gets Created Two Times »
I am creating my model object using new keyword. But each time the two objects created. My code is class DashBoardController extends Controller { ...
(1) odpowiedzi
2017-06-20 09:06 Laravel 5.4 task scheduler not running on windows »
I've to schedule a task in laravel 5.4. I'm using Xampp (php 7) I'm running below command and adding a log message. But it is not running everyMinute...
(1) odpowiedzi
2017-06-20 07:06 i'm unable to get object data »
I'm using Facebook login with Socialite which is dumping the user as shown below. dd($user); output: How to get user details from above object ...
(1) odpowiedzi
2017-06-19 15:06 Laravel 5.4 Saving an array of input to a belongsto model »
<input type="text" name="subcat[0]"> <input type="text" name="subcat[1]"> <input type="text" name="subcat[2]"> <input ...
(2) odpowiedzi
2017-06-19 12:06 Why is it "strongly recommended" not to use the env() helper when caching config files? »
Laravel upgrade documentation from 5.2 to 5.3 specifies the following: Caching And Env If you are using the config:cache command during deplo...
(2) odpowiedzi
2017-06-19 12:06 Laravel clears session data with ajax get request »
I have 2 laravel apps ,currently working on localhost askspidy (http://localhost/askspidy/public/) askspidymailer (http://localhost/askspidymailer/...
(1) odpowiedzi
2017-06-19 11:06 Laravel append URI in route »
Hi I want to append the uri in laravel route function. e.g we have /search?type=listing //how do i can achieve this with route('search',['type'=&...
(2) odpowiedzi
2017-06-19 10:06 How to write conditional query with combination of two columns as a single query in Laravel? »
I have three tables products, product_meta_keys, and product_meta_values. Product table stores product's general information like name and product_met...
(2) odpowiedzi
2017-06-19 09:06 Laravel sync manytomany error »
I am attaching user_id, product_id with an extra field. Every thing is working fine until the extra field should be updated. When the field will be fi...
(3) odpowiedzi
2017-06-18 22:06 Laravel: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths »
I installed Laravel and uploaded it to git now I downloaded it But when I'm trying to enter the site I get this error: The only supported ciphers ...
(1) odpowiedzi
2017-06-18 19:06 Laravel Validation Multiple Files »
I am trying to validate multi-select file uploads to Laravel. I print_r my Request but I don't understand why it doesn't validate when clearly all up...
(1) odpowiedzi
2017-06-18 17:06 Call Laravel method on every pages before the page is loaded »
I'm looking for a way to call a method and do a specific action before a page is loaded on every routes, and every method called on my project. Exce...
(1) odpowiedzi
2017-06-18 14:06 has() always true when using null coalesce operator? »
I'm using the following code in my form currently: {{ $errors->has('email') ? ' has-error' : '' }} I tried changing it to this: {{ $errors->...
(2) odpowiedzi
2017-06-18 08:06 laravel 5.4 - socket io need csrf token to send ajax to laravel server , how to get that? »
My socket io want to send ajax to laravel server , but I need the csrf token to set to my ajax header , how to do that? I have found a page seems dis...
(1) odpowiedzi
2017-06-18 04:06 Why do we need products like Pusher and Socket.io to establish a websocket connection? »
I've been reading about websockets and SaaS like Pusher and Socket.io recently, while working on my Laravel chat practice application. What I don't un...
(2) odpowiedzi
2017-06-18 02:06 How to link css files to my html in Lumen »
I have just begun learning lumen and can't seem to find the answer to this simple question. This is my current <head>: <head> <...
(1) odpowiedzi
2017-06-17 19:06 Laravel Making Acl Users with permissions(without ranks/groups) »
I want to create users which I can grant permissions. I created a permissions model, which contains following attributes (id|name|displayName|desc) 1...
(0) odpowiedzi
2017-06-17 18:06 Laravel view links and web.php routes messed up »
I'm making a forum with themes and topics. If a user clicks on a theme, he/she gets to see all the topics within that theme. Here we encounter the fir...
(1) odpowiedzi
2017-06-17 09:06 Laravel 5.2 Missing required parameters for [Route: showtopic] [URI: theme/{id}/topics/{id}] »
I keep getting the following error: Missing required parameters for [Route: showtopic] [URI: theme/{id}/topics/{id}]. This is what my Web.php looks ...
(2) odpowiedzi
2017-06-16 21:06 Laravel query builder vs Raw »
Im quite new to laravel and so far I realy enjoy eloquent and querybuilder, but as soon as the queries become more complex, my head starts to hurt... ...
(1) odpowiedzi
2017-06-16 15:06 one route 2 controllers - Laravel »
I have a route, based on the term i need to call the appropriate controller. for e.g Route::get('/{term}','Usercontroller') Route::get('/{term}','br...
(1) odpowiedzi
2017-06-16 11:06 laravel one to one retrieve many results »
I have business and location table and they have one to one relationship. Everything works fine so far but they problem is I only find 1 result. Howe...
(1) odpowiedzi
2017-06-16 01:06 Query HasManyThrough Laravel relation retrieving related records »
Considering the basic example Has Many Through relationship in the Laravel guide, I'm trying to query directly with eloquent, countries with posts fro...
(2) odpowiedzi
2017-06-16 01:06 laravel query a collection that's been called pior »
I have this code below to get all the rating information for a model as you can see there are quite a lot of queries going on just for the rating info...
(3) odpowiedzi
2017-06-15 16:06 Popup onselect event »
I am currently working with the Laravel Framework and I am working on a webpage that will allow a user to enter a start and end date in order to searc...
(0) odpowiedzi
2017-06-15 16:06 Eager Loading with Eloquent »
I have the following code: $users = User::with('profile')->paginate($count); and: $roles = Role::withCount('users')->get(); Now using lara...
(1) odpowiedzi
2017-06-15 10:06 How can I get image from different project on the laravel? »
I have two project or url First url like this : http://myshop.dev/ Second url like this : http://backend.myshop.dev/ If the second url, I run th...
(3) odpowiedzi
2017-06-15 00:06 Laravel: Cookie disappears on refresh: Instead, XSRF-TOKEN is created wrongly »
What I've been trying is to set a token (i.e. a string) as a cookie, which needs to persist for a certain period. public function tokenAuth(Request $...
(0) odpowiedzi
2017-06-14 12:06 use laravel notification for email verification »
As you know u can send notification via email like this in larave : public function toMail($notifiable) { $url = url('/invoice/'.$this->invoic...
(2) odpowiedzi
2017-06-14 11:06 Update data into table from dynamically created input field »
I have 2 models Tour.php public function Itinerary() { return $this->hasMany('App\Itinerary', 'tour_id'); } and Itinerary.php public funct...
(2) odpowiedzi
2017-06-14 08:06 Laravel how to return a whole item data with the highest value »
How can I return the whole item data, I've used max to get the hieghest value but it only returns the value of the field not the whole item public st...
(4) odpowiedzi
2017-06-14 03:06 Laravel how to add new field in query result »
How can I add new field in each item, I have used put() but it only add on the last item. return self::where('latest', 1) ->where('com...
(1) odpowiedzi