httpsession - Error in Storing Session and to display Success message Laravel 5.3

I followed the documentation on Laravl 5.3's HTTP Session not that to me in using this feature. I created the sessions table via the laravel's documentation but Im not getting any stored sessions on the Application's - Seesion Storage.Can someone shed some light on me? Thanks!AdminController:public function show(Request $request, $id){ $request->session()->put('key', 'value'); $value = $request->session()->get('key');}...Read more

Laravel 5.3 - changing auth view paths

In my Laravel app I have different auth for administrators and users. So I have separete views as well. I have placed auth views folder inside admin folder, so that the view path to my admin auth is now admin.auth.login for example. Where can I change those paths so that I can use them for all the auth functions?...Read more

laravel 5.3 - Get Email Address from socialite while login with Gmail

I am following this article to login with Google. I am able to redirect to gmail login successfully. Also, it goes to callback url successfully.Below is my codepublic function showGoogleLoginForm() { $providerKey = \Config::get(''); return \Socialite::driver( 'google' )->scopes(['profile', 'email'])->redirect();}ProblemI am now trying to check if the callback gives me the email address of the user or not. So that, I could check that user is registered in my database or not.Is there any way to get the email address in ...Read more

Sending mails with laravel for android app forgot password functionality

I am trying to create a forgot password module for my android project which has laravel running as backend. What I'm trying to achieve is to create a random string and send it as a mail but I don't know how to do it.<?phpnamespace App\Http\Controllers;use Illuminate\Http\Request;use App;class FgtPswdController extends Controller{ public function CheckEmail(Request $request){ $email = $request['email']; $checkEmail = App\Login::where('email', '=', $email)->first(); if ($checkEmail){ $randomString = str_ra...Read more

Laravel 5.3 "Job" doesn't work

I have setup this Notification:<?phpnamespace App\Notifications;use Illuminate\Bus\Queueable;use Illuminate\Notifications\Notification;use Illuminate\Contracts\Queue\ShouldQueue;use Illuminate\Notifications\Messages\MailMessage;class Published extends Notification{ use Queueable; /** * Create a new notification instance. * * @return void */ public function __construct() { } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function...Read more

Laravel 5.3 Passport JWT Authentication

Earlier when I was using laravel 5.2, i used a third party package for making JWT based authentication. Where we just had to pass the username and password to get a token.Now in laravel 5.3 with the introduction of passport I want to make a JWT based authentication but passport requires me to specify the client_id and client_secret along with the username and password. which was not there in tymondesigns/jwt-auth.If I make a request without the client_id then it throws an error http://pix.toile-libre.or...Read more

laravel 5.3 - Password Reset in Lumen 5.3

I'm trying to create a PasswordReset API in Lumen 5.3.I've the same setup from a default Laravel 5.3 app.$app->post('/password/email', 'PasswordController@postEmail');$app->post('/password/reset/{token}', 'PasswordController@postReset');and in the user Model I've overridden the method as follows:public function sendPasswordResetNotification($token){ $this->notify(new ResetPasswordNotification($token));}I've manually pulled in the Notification package for Lumen 5.3But, I'm getting the following error:BindingResolutionException in...Read more

Laravel - Emails not including data when sent via Queue

I'm trying to set up a Contact Form and all is going well. Set up my Controller with ->send(), all works fine (takes a bit of time). When I set it up to work with ->queue(), seems to work fine (no delay), job is set up, mail is sent when I dispatch. But this time my mail template does not include the data sent to the Mailer.My Controller:<?phpnamespace App\Http\Controllers;use Illuminate\Http\Request;use App\Mail\Contact;use Illuminate\Support\Facades\Mail;class PagesController extends Controller{ public function sendContact(Request $reques...Read more

laravel 5.3 - Elixir Gulp BrowserSync seperate development server

I am developing Laravel websites on a development server in my network.My gulpfile.jsmix.browserSync({ open: 'external', host: 'website1.devserver.tld', proxy: 'website1.devserver.tld', port: 3000, files: [ 'app/**/*', 'public/**/*', 'resources/views/**/*' ],});The result when starting gulp watch:[BS] Proxying: http://website1.devserver.tld[BS] Access URLs: ----------------------------------------------- Local: http://localhost:3000 External: http://website1.devserver.tld:3000 --------------------...Read more

laravel 5.3 action with parameter doesn't work

I have problem with route action have parameters.this is my Web route : Route::get('/services/[id]/[title]', 'SiteController@services');and this is my blade link : <a href="{{action('SiteController@services',['id'=>'4','title'=>'4'])}}" class="text-blue transition-5 padding-top-30 display-block"> More </a>But when i click on this link i have this url :http://localhost:8000/services/%5Bid%5D/%5Btitle%5D?id=4&title=4and in wamp i cant see my pages , i have db not found error. but in localhost800 not problem :| help me please...Read more

laravel 5.3 - Shopify: How to delete database entry fast after uninstall web-hook response, so the merchant uninstall and re-install quickly?

This is my code in callbackController.php file$url = 'https://' . $_GET['shop'] . '/admin/webhooks.json'; $webhookData = [ 'webhook' => [ 'topic' => 'app/uninstalled', 'address' => config('app.url').'uninstall.php?shop='.$shop, 'format' => 'json' ]];$uninstall = $sh->appUninstallHook($accessToken, $url, $webhookData);This is my uninstall.php file code , these file is in laravel root folder.$connection = new mysqli("localhost", "username", "******", "database");$delete_shop = "DELETE F...Read more

vuejs2 - Vue 2.0 Laravel 5.3 Parent Child relationship with slot

I have a project where when i click on a anchor on parent item-sorting-list a property of child item-card will change so it sort something out based on that property. However the data does not seem to pass to the child. I am wondering if there is anything wrong when i built up the parent child relationship in the meanwhile? template (item-sorting-list) <a :name="" href="" @click.prevent="getSelectedSubcat(">{{}}</a>methods (item-sorting-list)methods: { getSelectedSubcat(subcat){ var vm =...Read more