laravel-5.1

Route Issue in Anchor Link in Laravel 5.2

折月煮酒 提交于 2019-12-25 18:19:58
问题 I have route defined in the Route.php file like below Route::get('/SubCategories-List/{categoryID}', 'Skills\Category_Controller@SubCategories'); Below is the code done in Blade for showing list of records. @foreach($Categories as $Category) <tr class="odd pointer"> <td class=" last"> <a href="{{Route('SubCategories-List', [$Category->CategoryID])}}"> Sub Categories </a> </td> </tr> @endforeach I am getting the following error when action method calls the blade Route [SubCategories-List] not

Laravel 5 - update overwriting all data

落花浮王杯 提交于 2019-12-25 11:54:09
问题 I have a Document Model which represents a Document (name, description etc). I then have a DocumentData Model which represents the data of a Document. A Document has One to Many DocumentData, So to create a Document I have a form. Lets say that my form has a text input for Document Owner. Within my DocumentData table, the label documentOwner is set as the key and the inputted data is set as the value. So with multiple form elements, my DocumentData table might look like this document_data id

Using Bootstrap Typeahead in Laravel-5.1

纵然是瞬间 提交于 2019-12-25 11:52:54
问题 I'm trying to do the implementation of this pure PHP project (Re-write pure PHP code in Laravel-5.1 format) in Laravel-5.1 version, and I'm yet to get what needs to be done right. Bootstrap Typeahead is not effected. I would appreciate being pointed to what I'm to do right. This is the blade form: {!! Form::open(array('url' => 'created-products', 'method' => 'post'), array('id'=>'createproduct')) !!} {!! Form::token() !!} <link href="{!! asset('bootstrap/css/bootstrap.css') !!}" media="all"

Displaying of month and it's year based on condition

馋奶兔 提交于 2019-12-25 07:59:12
问题 In my Laravel 5.1 application, I have a feature of Subscription. It is working to a certain extent, but not what I am looking for.. Scenario : A user makes a subscription on October 2016 for 6 months.. So, the array will look something like this: [ "subscription_months" => 6 "subscription_start_month" => "01-10-2016" // <-- will be carbon instance "subscription_end_month => "31-03-2017" // <-- will be carbon instance "monthName" => "October" ] The above array I am showing is only 1 month..

Loading data when button is clicked using vue js and laravel

自闭症网瘾萝莉.ら 提交于 2019-12-25 07:39:56
问题 I have this project that when a user clicks on a button the data should be displayed on a table. However, I am using a table as seen here http://i.stack.imgur.com/HW4rE.jpg. What I want is that when a user clicks on the add button on the enrollment form table, it should displayed on the added subjects table without the need of refreshing the page. The problem is that I am using a table and I cannot make use of the v-model to bind the values. So here's my form.blade.php Enrollment Form table

Why hasMany Relation still working even i removed relation in Laravel

a 夏天 提交于 2019-12-25 06:40:57
问题 In the above both models i commented the method itemDestribution() but still it is working 回答1: This relation displays a Data because of following reasons. In your ItemDestributionModel , You have set relation with UserModel and ItemModel both. In your ItemModel and UserModel you haven't declare any public function and add Relation Class. When you call UserModel it will find hasMany Relationship in ItemDestributionModel and user() function is available with belongsTo relationship. That's why

Laravel about Requests

泪湿孤枕 提交于 2019-12-25 06:27:13
问题 i am new in programing laravel. so here I will not ask about my problems but I am here just want to ask how to use laravel. here I would like to ask how to use: Determining If an Input Value Is Present in laravel. and what it does? thanks ^^ 回答1: Laravel is really a good MVC Framework. I can suggest you some source from where you can get better understanding of Laravel Framework. https://laravel.com/docs/5.2 https://laracasts.com/skills/laravel For simple example - How to use Laravel after

Laravel about Requests

好久不见. 提交于 2019-12-25 06:27:12
问题 i am new in programing laravel. so here I will not ask about my problems but I am here just want to ask how to use laravel. here I would like to ask how to use: Determining If an Input Value Is Present in laravel. and what it does? thanks ^^ 回答1: Laravel is really a good MVC Framework. I can suggest you some source from where you can get better understanding of Laravel Framework. https://laravel.com/docs/5.2 https://laracasts.com/skills/laravel For simple example - How to use Laravel after

facebook authentication using laravel 5.1 socialite

▼魔方 西西 提交于 2019-12-25 04:07:39
问题 hello im using localhost so i have recently switched to laravel 5.1 and im trying to use 'socialite' it provides so i have updated my config , services and the .env files so in my routes i also added these codes Route::get('/', function () { return view('welcome'); }); Route::get('auth/facebook', 'Auth\AuthController@redirectToProvider'); Route::get('auth/facebook/callback','Auth\AuthController@handleProviderCallback'); Route::get('home', array('as' => 'home', 'uses' => function(){ return

Validation Error (Array to string conversion) in laravel 5.1

偶尔善良 提交于 2019-12-25 03:38:21
问题 I'm struggling a couple of hours to fix this error but no luck please I need help about this error always says: (Array to string conversion) Code: <?php namespace App\Http\Controllers; use Validator; use Illuminate\Http\Request; use App\Http\Requests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; use Hash, Auth, URL, Route, Cart, View, Paypal; use App\Product, App\ProductBenefit, App