Neewd

Experience

570

0 Best Reply Awards

  • Member Since 2 Months Ago
  • 4 Lessons Completed
  • 0 Favorites

15th August, 2018

Neewd started a new conversation Do We Must Use A Paid Mailing Service ? • 1 day ago

Hello,

I am currently implementing some features who needs to mail the user.

From the docs I have seen a lot about mailgun, sparkpost, mantrill and some other.

But nobody talked about own implementation ? It’s impossible to implement our own mail function nowadays ?

I know those services can track my needs etc etc but atm I do not matter or such feature and their free pricing plans seems quite low for my mid term needs.

If anyone got that question I would be happy to listen the answers

Clement

23rd June, 2018

Neewd started a new conversation Redirect With Messages On Session Don't Work • 1 month ago

Hello,

For the context, I have a route who activate the account when the user clicks on a button on his email. At the end of my controller I would like to redirect into my '/' route with a little session flash message to indicate at the user that his account has been activated.

I took the documentation from Laravel with this little piece of code :

return redirect('dashboard')->with('status', 'Profile updated!');

I adapt this example to my needs like this :

return redirect('/')->with('message', 'You're account has been activated!');

The only part who changed in comparison of the documentation example is that I use Vue components as front-end so when my component mount, I check if the session exists, but it always returns me false :(

Does anyone have this kind of example with Vue who actually works ?

Thank you for your kind help and your time,

15th June, 2018

Neewd left a reply on Laravel + Vue : Routes On Web.php / Api.php • 2 months ago

If I want to use the CreateFreshApiToken, it comes from Passport, how I can use this without Passport ? :o

I have another question about the consumption of my API through my javascript framework. I put my API routes in my 'api.php', and my web routes - and Auth::routes in my web.php. The CreateFreshApiToken middleware will be add to the web groups middleware, so when I'll make a login, the reply will contains a token, and when I will make an axios call to my API, I have to send the X-CSRF-TOKEN and the width in the headers, and all gonna be right, right ?

Neewd left a reply on Laravel + Vue : Routes On Web.php / Api.php • 2 months ago

Hello,

Thanks you both for your answers. My need is to call my API in the front-end via Vue.js, if I put my ::resource routes on the api.php, and if I use the CreateFreshApiToken for my API auth, that fills my need no ? https://laravel.com/docs/5.6/passport#consuming-your-api-with-javascript

14th June, 2018

Neewd started a new conversation Laravel + Vue : Routes On Web.php / Api.php • 2 months ago

Hello guys,

I am quite a new guy on Laravel and I have started working on a project, and I would like get some advice about the good architecture to pick.

I decided to manage my front with Vue and my backend with Laravel.

What I have started to do is to capture the routes through Laravel and sent it to my Vue routes to determines which components to load etc. And I was thinking to make "api" calls though axios into my Vue.components to retrieve the data from my controller in order to display them into my view.

That's still a "web" logic.

But I am also thinking to the future API I will provide.

So what is the best option to take ?

Put some Route::resource('model', 'Controller') into the web.php file, then call those routes in my Vue.components, and put the Route::resource('model','Controller') into my api.php file ?

Thank you for your answer I don't know if I am going the right way or not.

Clément.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.