marcosdipaolo

marcosdipaolo

Member Since 1 Year Ago

Experience Points 15,070
Experience Level 4

4,930 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 142
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

11 Sep
4 days ago

marcosdipaolo commented on Make A Router

If you are dockerized create an .htaccess and code in it the following:

<IfModule mod_rewrite.c>

   RewriteEngine On

   RewriteCond %{REQUEST_FILENAME}  -f [OR]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php [L,QSA]

</IfModule>

don't forget to add the following to the Dockerfile:

RUN a2enmod rewrite
RUN service apache2 restart
22 Aug
3 weeks ago

marcosdipaolo left a reply on File Not Found On Resource_path()

SOLVED I was using Storage instead of File, or just the native copy

Edit: Exactly @petrit !!!! thanks!

marcosdipaolo started a new conversation File Not Found On Resource_path()

The line resource_path('email-attachments/' . $filename) is throwing a "File not found" error when the file actually exists. I checked it with file_exists which returns true. I'm working with docker but the problem persist inside and outside the container. I'm working in an quite old app with Laravel 5.4.

file_exists(resource_path('email-attachments/' . $filename))
true
\Storage::copy(
    resource_path('email-attachments/' . $filename),
    storage_path('app/email-attachments/' . $filename)
);
In Filesystem.php line 388:
File not found at path: var/www/html/resources/email-attachments/filename.pdf

thanks in advance

06 Jul
2 months ago

marcosdipaolo started a new conversation Laravel, Doctrine And The Use Of Value Objects To Model Authentication Data

Hi there. I've been trying lately the use of Doctrine along with Laravel with the library LaravelDoctrine. I was happy when i found out that actually you can make the laravel auth system work with Doctrine, its Entities and all, using some of its traits with the help of the docs and this helpful article. All good, everything works. The only thing I wanted is a Laravel Doctrine bolierplate repo to save time every time I need to start a new prioject. But..., here's the deal. As I code i feel the need of modeling better the name, email and password, those are the users table fields, table which was set up using Fluent . What do I mean by modeling?, the use of Value objects. With them i can take care of certain specific validation if I want, hashing if i want to do it myself, etc etc. So my UserMapping.php file would look like this:

<?php

namespace App\Infrastructure\Mappings;

use LaravelDoctrine\Fluent\EntityMapping;
use LaravelDoctrine\Fluent\Fluent;
use Src\Entities\User;
use Src\ValueObjects\Email;
use Src\ValueObjects\Name;
use Src\ValueObjects\Password;

class UserMapping extends EntityMapping
{
    public function mapFor()
    {
        return User::class;
    }

    public function map(Fluent $builder)
    {
        $builder->bigIncrements('id');
        $builder->embed(Name::class)->noPrefix();
        $builder->embeed(Password::class)->noPrefix();
        $builder->embeed(Email::class)->noPrefix();
        $builder->timestamps();
    }
}

Point is, is this posible? Is laravel auth system flexible enough? is it a good idea? (it sounds good to me). Is it a lot of work?. Question arose when yesterday i tried really quickly and didn't work out of the box. I'll be very glad if i get some opinions about this.

20 May
3 months ago

marcosdipaolo left a reply on Mailable To() Error In Production

nobody? I have the same problem

10 May
4 months ago

marcosdipaolo started a new conversation Median() Method In A Collection Of Objects

Hi there, i need to get the middle lesson of a collection of lessons, the driteria is the lesson's date. Is the median() method ok for this?, because it seems to work but i'm not sure it's beign precise.

$middleLesson = $commission->getLessons()->sortBy(function(Lesson $lesson){
            return $lesson->getDate();
        })->median();

UPDATE

It (apparently) works if the collection's count is odd, if it's even it returns 0

20 Apr
4 months ago

marcosdipaolo left a reply on Cannot Connect To Database With Docker And Pdo_mysql In Laravel

@hajrovica not necessarily, but your input was crutial, thanks a lot.

marcosdipaolo left a reply on Cannot Connect To Database With Docker And Pdo_mysql In Laravel

OMG! that did it!!! Thanks a lot!, but ofc now i cannot access from the outside, is there a way of being able to access the DB from both environments?

Edit: found it! adding

127.0.0.1   mysql

to hosts file!!, thanks a lot!!

marcosdipaolo left a reply on Cannot Connect To Database With Docker And Pdo_mysql In Laravel

I don't know if i unsertand you correctly, but this is what is happening outside and inside:

Outside:

➜  backoffice git:(master) ✗ php artisan tinker
Psy Shell v0.9.9 (PHP 7.2.15 — cli) by Justin Hileman
>>> $ur = app(MDiPaolo\Repositories\UserRepository::class)
=> App\Infrastructure\Repositories\Doctrine\UserDoctrineRepository {#3159}
>>> $u = new MDiPaolo\Entities\User
=> MDiPaolo\Entities\User {#3295}
>>> $u->setEmail('[email protected]')
=> MDiPaolo\Entities\User {#3295}
>>> $u->setPassword(password_hash('1234', PASSWORD_BCRYPT))
=> null
>>> $ur->save($u)
=> null
>>>

Inside:

➜  backoffice git:(master) ✗ docker exec -it backoffice_web_1 bash
[email protected]:/var/www/html# php artisan tinker
Psy Shell v0.9.9 (PHP 7.2.17 — cli) by Justin Hileman
>>> $ur = app(MDiPaolo\Repositories\UserRepository::class)
Doctrine/DBAL/Exception/ConnectionException with message 'An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused'

marcosdipaolo left a reply on Cannot Connect To Database With Docker And Pdo_mysql In Laravel

Already checked..., many times. Something to point out, i have full access to the database from outside the container, i can migrate, create users from the tinker, the problem is from inside the container. Dus the problem is how the docker system is built (i guess).

marcosdipaolo left a reply on Cannot Connect To Database With Docker And Pdo_mysql In Laravel

Hi hajrovica Yes, of course i can connect with Seque Pro, mysql docker container is working properly. Also accesing it from the command line works.

marcosdipaolo started a new conversation Cannot Connect To Database With Docker And Pdo_mysql In Laravel

Cannot connect to database with docker and pdo_mysql in laravel

The errors are: -SQLSTATE[HY000] [2002] No handler for this scheme (that's with 'localhost' as DB_HOST in .env) -SQLSTATE[HY000] [2002] Connection refused (that's with '127.0.0.1' as DB_HOST in .env)

previous errors were: -could not find driver, that was before I coded in Dockerfile: RUN docker-php-ext-install pdo_mysql RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" and uncomment extension=pdo_mysql at php.ini at $PHP_INI_DIR which is /usr/local/etc

Honestly I don't know if that was entirely necesary but error was gone, insted now at php artisan tinker inside docker container i get PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0

If i don't do that i get the error even if i rename php.development.ini to php.ini and uncomment the line extension=pdo_mysql (phpinfo says that it is not loading the file anyways??)

thanks in advance

Dockerfile

FROM php:7.2-apache

# RUN apt-get update && apt-get install php-mysql
RUN apt-get update
RUN apt-get install nano
#RUN docker-php-ext-install pdo_mysql
#RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"

RUN a2enmod rewrite
RUN service apache2 restart

ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf

docker-compose.yml

version: '3.1'

services:
    web:
        build: .
        ports:
            - "8080:80"
        links:
            - mysql
        depends_on:
            - mysql
        volumes:
            - ./:/var/www/html
    mysql:
        image: mysql:5.7.25
        ports:
            - "3306:3306"
        environment:
            MYSQL_ROOT_PASSWORD: my_password

.env file

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=dashboard
DB_USERNAME=root
DB_PASSWORD=my_password
12 Oct
11 months ago
10 Oct
11 months ago

marcosdipaolo started a new conversation Deployment To Production

Hi there. I'm about to deploy to production and I read in Laravel's docs that three lines should be ran.

composer install --optimize-autoloader --no-dev

php artisan config:cache

php artisan route:cache

Since I'd like to keep working further in the app after deployment, my question is if i can continue working in dev mode in the app once those lines are executed, or do i have to rollback the app to some previous state ???

07 Oct
11 months ago

marcosdipaolo left a reply on Edit Laravel 5.7 Verification E-mail?

I already did....,

They talk about the view with the message of "Verify your email", not the email's markdown that is sent to the user to verify the email address

marcosdipaolo started a new conversation Edit Laravel 5.7 Verification E-mail?

Is there a way to customize the verification email beside editing vendor/laravel/framework/src/Illuminate/Auth/Notifications/VerifyEmail.php??

03 Oct
11 months ago

marcosdipaolo left a reply on Route Model Binding - Optional RouteKeyName

@Cronix it's what i thought in the beginning, since i needed slugs in my products urls and not ids, but when the time comes where you have to build an e-commerce cart where you'll charge money to people's credit cards, isn't an incremental id less error prone and secure?. I've actually coded some logic to make slugs unique on product's create and update, but still i was unsecure to use slugs for the critical stuff.

06 Sep
1 year ago

marcosdipaolo started a new conversation Embeeding Videos Into Blade Templates.

I'm having some strange (or at the very least unexpected) behavior trying to embeed vimeo and youtube videos in blog posts. I'm using the quill wysiwyg editor, and all that works fine. But once i save a post including an embeeded video within an iframe in it's body..., something like that:

<p>This is a post with an embeeded video.</p>
<iframe class="ql-video" frameborder="0" allowfullscreen="true" src="https://www.youtube.com/embed/w02pBKY-PLM?showinfo=0"></iframe>

The page has a pre-loader and it keeps loading forever, waiting to finish loading the page, which never happens. The snippet above is what is saved to the DB as a string. I'm trying to render it like this:{!! $post->body !!} I tried also with {{ }} and many other things, and nothing.

Edit: sorry, i think i called {!! str_limit($post->body, 40) !!} somewhere and the function cutted the iframe at the half being impossible to render, i think that's the problem.

04 Sep
1 year ago

marcosdipaolo left a reply on General Methods And A Method Accepting Instances Of Different Possible Models As Parameter

Oh!!, thanks a lot @Snapey I will surely check out that library!. unfortunately this project is almost finished, I'll stick with the intervention image for this one. Have you tried it? http://image.intervention.io/

And what about 2nd question? can a method receive as a parameter a variable $model_instance which can be an instance of different models depending where nd what you're calling it for?

marcosdipaolo started a new conversation General Methods And A Method Accepting Instances Of Different Possible Models As Parameter

Sorry for the blury title. This is the thing:

1st question: If a build a model that is useful for all controllers, where should I place it?. For ex. the method public function uploadImg(). Many controllers need to upload an image, so it s a method which is useful for the whole app, not a certain controller.

2nd question: If that method might be useful for upload images, it would surely need a instance of an object to store the image's urls at the right row and table, e.g. Post $post, or User $user.

If I'm consistent enough to let all models with an img column share the same image columns names at the table, say "img_url" and "thumb_ur" for thumbnails, is it posible to receive as a parameter a variable that might contain instances of different models? for example this code below (notice I'm using several methods that are not to be found in this snippet, and also the "Intervention Image" library):

<?php
public static function uploadImg($model_Instance, Request $request, $width, $prefix) 
    {
        if ($request->hasFile('image')) {
            $model_Instance->deleteImg($hero);
            $ext = $request->image->extension();
            $now = time();
            $photo_path = "/img/{$prefix}/" . "{$prefix}_" . Post::slug($request->title) . "_" . $now . "." .$ext;
            $thumb_path = "/img/{$prefix}/thumbs/" . "{$prefix}thumb_" . Post::slug($request->title) . "_" . $now . "." .$ext;
            $foto = \Image::make($request->image);
            $thumb = \Image::make($request->image)->resize(150, NULL, function($c){
                $c->aspectRatio();
                $c->upSize();
            });
            if ($foto->width() > $width) {
                $foto->resize($width, NULL, function($constraint){
                $constraint->aspectRatio();
                });
            }

            $foto->save(storage_path('app/public') . $photo_path);
            $thumb->save(storage_path('app/public') . $thumb_path);
        }
        else {
                     
            $photo_path = $model_Instance->img ?? NULL;
            $thumb_path = $model_Instance->thumb ?? NULL;
        }
        return ['photo_path' => $photo_path , 'thumb_path' => $thumb_path];
    }

This is a desperate try to make this code reusable instead of copying the whole method into two different models

23 Aug
1 year ago

marcosdipaolo left a reply on Getting A MethodNotAllowedHttpException When Deployed To Server.

##Correct!! Thanks a lot @Cronix, that was the error, i wasn't aware that's not allowed and that none of my routes had that slash at the end. Thanks!!!

marcosdipaolo left a reply on Getting A MethodNotAllowedHttpException When Deployed To Server.

Hi @Snapey , thank for your answer . Here my routes file.

Route::get('/' , '[email protected]')->name('inicio');
Route::get('/page/{page}' , '[email protected]')->name('page');
Route::get('/page/delete/{page}', '[email protected]');

Route::get('/blog/publish' , '[email protected]');
Route::post('/blog' , '[email protected]');
Route::get('/post/edit/{post}' , '[email protected]');
Route::post('/post/editPost/' , '[email protected]');
Route::get('/post/delete/{post}' , '[email protected]');
Route::get('/admin/post/delete/{post}' , '[email protected]');
Route::get('/posts/{post}' , '[email protected]')->name('single');
Route::get('/archive/{tag}' , '[email protected]');

Route::get('/admin/{section}' , '[email protected]')->name('adminSection');
Route::get('/admin/pages/{page}' , '[email protected]');
Route::get('/admin/page/create' , '[email protected]');
Route::get('/admin/galeria' , '[email protected]');
Route::post('/admin/galeria' , '[email protected]');
Route::post('/admin/profile/update/' , '[email protected]');
Route::post('/admin/page/create' , '[email protected]');
Route::post('/admin/{page}' ,  '[email protected]');

Route::post('/counter' , '[email protected]');
Route::get('/counter' , '[email protected]');

Route::delete('/gallery/delete' , '[email protected]');
Route::post('/gallery/upload' , '[email protected]');

Route::post('/hero/create', '[email protected]');
Route::get('/admin/hero/delete/{hero}', '[email protected]');


Route::post('/user/add', '[email protected]');
Route::get('/user/edit/{user}', '[email protected]');
Route::post('/user/edit/{user}', '[email protected]');
Route::get('/user/delete/{user}', '[email protected]');
Route::get('/users/{user}', '[email protected]');
Route::get('/register' , '[email protected]');
Route::post('/register' , '[email protected]');

Route::post('/comment/{post}', '[email protected]');
Route::get('/comment/delete/{comment}', '[email protected]');

Route::post('/comment/reply/{comment}', '[email protected]');
Route::get('/reply/delete/{reply}', '[email protected]');

Route::post('/like/create', '[email protected]');
Route::delete('/like/delete', '[email protected]');

Route::post('/suscribe', '[email protected]');
Route::get('/suscriber/delete/{suscriber}', '[email protected]');

Route::post('/events', '[email protected]');
Route::get('/event/delete/{event}', '[email protected]');

Route::post('/products', '[email protected]');
Route::get('/product/delete/{product}', '[email protected]');

/* AUTH */
Auth::routes();


22 Aug
1 year ago

marcosdipaolo left a reply on Getting A MethodNotAllowedHttpException When Deployed To Server.

I created a directory called Laravel at the route of the site (not public_html folder) where i uploaded everything BUT the public folder, which is in the public_html folder. I edited public_html/index.php to

require __DIR__.'/../laravel/vendor/autoload.php';

I believe locally i'm working with nginx and remotely with apache. Everything is working pretty nice, only that form is giving problems untill now.

marcosdipaolo left a reply on Getting A MethodNotAllowedHttpException When Deployed To Server.

@Snapey that wasn't for you but for @Cronix.

I'm not sure I understand your question. Everything is set as the local environment. the route at the browser's address bar is mydomain.com/post/editPost. Other forms (like the publish post) works so it's not a general problem. Frameworks files are placed in Laravel folder at the root, the public folder files in the public_html folder

marcosdipaolo left a reply on Getting A MethodNotAllowedHttpException When Deployed To Server.

Nop, nothing changes, it doesn't even get to the controller, i vave in the controller

   public function update(Request $request)
   {
       return dd($request);
        ...

so i should get the request's dump first thing, but it doesn't get there, i don't know what to try anymore.

marcosdipaolo left a reply on Getting A MethodNotAllowedHttpException When Deployed To Server.

I'll try put, post it works locally anyways.

marcosdipaolo started a new conversation Getting A MethodNotAllowedHttpException When Deployed To Server.

When i hit submit in a form with method POST i get the Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException. No message error. I already checked the route and it doesn't get to the controller. This DOESN'T happen in my local environment.

 <form id="postPublish" action="/post/editPost/" method="POST" enctype="multipart/form-data">
Route::post('/post/editPost/' , '[email protected]');

It works locally.

marcosdipaolo left a reply on Artisan::call Doesn't Work

Let's see if i understand right.

I think i ran that line

php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"

when i installed scout and to put scout.php into the config directory, which is a config file. Running that line doesn't create the ScoutServiceProvider in app/providers directory. Question would be if i can copy the file myself at that location.

marcosdipaolo left a reply on Artisan::call Doesn't Work

Can we edit that class in order to make them available from the code?

marcosdipaolo left a reply on Artisan::call Doesn't Work

Hi @Cronix , as always you came to save the day :D Pity, i wanted to run that from a route, the flash and the import, i guess i'll have to export database, and locally import it and run the commands since i have no SSH at the remote server.

marcosdipaolo started a new conversation Artisan::call Doesn't Work

I have in my web route file:

Route::get('/algolia/import/posts', function(){
    $exitCode = Artisan::call('scout:import', [
        'model' =>'App\Post'
    ]);
    return redirect('/');
});

and it doesn't work, my intention is being able to import my records to algolia's search index from a route.

19 Aug
1 year ago

marcosdipaolo left a reply on Laravel 5.4: Specified Key Was Too Long Error

And if this happens when you're importing the database to the remote server through phpmyadmin?

10 Aug
1 year ago

marcosdipaolo left a reply on Password Resets Without Make:auth

I got it @Cronix, thanks. I managed changing $user = $this->create($request->all()); for $user = $this->create($request);

In the [email protected] i went:

protected function create(Request $request)
    {
        if ($request->hasFile('profile_pic')){
        $pathThumb = User::img($request);
        } else { 
            $pathThumb = '/img/users/user.png'; 
        }
        $user = new User;
        $user->name = $request->name;
        $user->full_name = $request->full_name;
        $user->email = $request->email;
        $user->team = $request->team ? 1 : 0;
        $user->role = $request->role ?? NULL;
        $user->bio = $request->bio ?? NULL;
        $user->profile_pic = $pathThumb;
        $user->password = Hash::make($request->password);
        \Mail::to($user)->send(new Welcome); 
        $user->save();
        auth()->login($user);
        return $user;        
    }

one small detail is i had my original UserController using a custom FormRequest from Illuminate\Foundation\Http\FormRequest; where i was doing my validation, i tried to do the same in the new [email protected] and it wasn't posible, unlike before, this Request had to be an instance of the Illuminate\Http\Request;, not the App\Http\Requests\UserCreateRequest which was the one i created, but anyways, since the new RegistrationController has that validator i don't really mind

09 Aug
1 year ago

marcosdipaolo left a reply on Password Resets Without Make:auth

I know, the problem is the mass assignments don't update the Algolia's indices. I need other method, see my updated question above.

marcosdipaolo left a reply on Password Resets Without Make:auth

Still here, hope i'm not disturbing.

I have implemented Algolia in this site, and Algolia's indices aren't going to update if i'm creating my users with "Mass assignment" like the default create method does at the RegistrationController.

protected function create(array $data)
    {
        return User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => Hash::make($data['password']),
        ]);
    }

I would change it to save() but the create method returns a User object while a save method would return a boolean, besides (not sure if important) it receives an array and that won't work with a Request $request, how could i make it a non mass assignment method?

could i go:

protected function create(array $data) 
{
   $user = new User;
   $user->name = $data['name'];
   /* *********** */
   /* all the drill */

 $user->save();
return $user
}

marcosdipaolo left a reply on Password Resets Without Make:auth

yes!! deeply sorry, just found it after posting, i had customized the validator method but not the create. Thanks!

marcosdipaolo left a reply on Password Resets Without Make:auth

thanks, that was of great help. Now, at the register method, i have more inputs than the default ones, and some of them are required at the DB. I'm at the trait RegistersUsers but i don't seem to understand which method to copy and customize to the RegisterController at app/Http/Controllers/Auth

marcosdipaolo left a reply on Password Resets Without Make:auth

I started modifying core controllers like the Illuminate\Foundation\Auth\AuthenticatesUsers, so the debacle begun (haha). Anyways Cronix, you've been most helpful, thanks a lot. I'll keep you posted about the results.

marcosdipaolo left a reply on Password Resets Without Make:auth

ok, the problem is my views, including the login view, register etc need certain variables (e.g. the page you're in ), and i want to check whats going on to modify the controllers but you can't see clearly in the routes because it's all inside the auth:routes and the auth controllers extends stuff, there's nothing in them, hard to customize, a least with my level of laravel.

marcosdipaolo left a reply on Password Resets Without Make:auth

Just doing so..., i think i quite dug my own grave when i decided not to go make:auth at the beggining. Isn't better to go ahead and do it now?, and try to fix things once it's done?

marcosdipaolo left a reply on Password Resets Without Make:auth

Thanks a lot, even if that's a superb answer i still have some questions, let start with:

  • how can i manually generate that unique token together with the link in the email blade file?.
  • You say that Laravel uses password_resets table, that table is usually used to store password resets? or all email addresses should go there at the registration as well with that token?
  • I'd like to use password_resets table as well, can i do that?

marcosdipaolo started a new conversation Password Resets Without Make:auth

From following Jeffrey's 5.4 tutorial i jus made the whole authentication manually, so without going php artisan make:auth. Now I wonder what is the best way to achieve password resets once you're in a place where make:auth isn't possible.

05 Jul
1 year ago

marcosdipaolo left a reply on Named Route + Parameter

route('named' , ['placeholder' => 'value'])->with(['var1'=>$value1, 'var2'=>$value2])

Thank you, you made my day