Code Monkey home page Code Monkey logo

laravel-roadmap-advanced-beginner-challenge's Introduction

Laravel Roadmap: Advanced Beginner Level Challenge

This is a task for the Advanced Beginner Level of the Laravel Roadmap, with the goal to implement as many of its topics as possible.

This repository is intentionally empty, with only a Readme file. Your task if to submit a Pull Request with your version of implementing the task, and your PR may be reviewed by someone on our team, or other volunteers.

The Task: Simple CRM System for Managing Clients

You should create an adminpanel-like system to manage Clients, Projects, Tasks with CRUD operations.

A few screenshots from the example solution:

Screenshot 2021-08-12 at 10 56 42

Screenshot 2021-08-12 at 10 57 15

You can come up with whatever structure of the database tables you want, but please try to use all the Laravel features listed below.


Features to implement

Here's the list of Roadmap features you need to try to implement in your code:

Routing Advanced

  • Route Model Binding in Resource Controllers
  • Route Redirect - homepage should automatically redirect to the login form

Database Advanced

  • Database Seeders and Factories - to automatically create first clients/projects/tasks and default users
  • Eloquent Query Scopes - show only active clients, for example
  • Polymorphic relationships with Spatie Media Library package
  • Eloquent Accessors and Mutators - view all date values in m/d/Y format
  • Soft Deletes on any Eloquent models

Auth Advanced

  • Authorization: Roles/Permissions (admin and simple users), Gates, Policies with Spatie Permissions package
  • Authentication: Email Verification

API Basics

  • API Routes and Controllers
  • API Eloquent Resources
  • API Auth with Sanctum
  • Override API Error Handling and Status Codes

Debugging Errors

  • Try-Catch and Laravel Exceptions
  • Customizing Error Pages

Sending Email

  • Mailables and Mail Facade
  • Notifications System: Email

Extra

  • Automated Tests for CRUD Operations

Example Solution

If you need help, or you want to compare your version with our simple version, here's the public repository with a possible solution.

Notice: please look at that repository only AFTER you've accomplished the task yourself, or if you're confident about your Laravel Advanced Beginner skills and you think you don't need to practice this task.

laravel-roadmap-advanced-beginner-challenge's People

Contributors

povilaskorop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-roadmap-advanced-beginner-challenge's Issues

how assign tasks to whom????

unfortunately, it is my first time working on crm ,and I can't understand who will make the tasks to whom.clients to users or users to clients.

Question: Preferred behaviour for deleting clients or users

Lets say that I have a user_id and client_id column in my projects table. What would be the preferred behaviour in case either users or clients get deleted? Would I set those fields to null or should there be some kind of mechanism to appoint either another user or client to fill the spot? Maybe something else entirely?

I feel like deleting the whole project when a user gets deleted for some reason should be avoided.

How to retrieve casted date without toArray or toJson ?

Hi,
For formatting some date column via casts, for example:

protected $casts = [
    'deadline' => 'date:d/m/Y',
];

when getting column, it'll return carbon instance:

dd($model->deadline);

// Illuminate\Support\Carbon @1671235200 {#1542 ▶}

But even when it's casted to string, it won't be formatted as specified in cast:

dd( (string) $model->deadline );

// "2022-12-17 00:00:00"

Just when I can get formatted date, that whole model be casted toArray, or toJson,

dd($model->toArray()['deadline']);

// "17/12/2022"

So there isn't any easier way to get formatted date without casting whole model?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.