nikolalukic94 / pl-rater Goto Github PK
View Code? Open in Web Editor NEWPL Rating App in Laravel
PL Rating App in Laravel
Couple suggestions for your File model:
$fillable
array is very large and would make more sense to delete it and go with $guarded = [];
or explicitly set the properties instead of using the create()
helper methodnotes()
it should be referencing the Notes
model, but the model should be changed to Note
instead (then this File class would be fine)createFromRequest()
there are a lot of duplicate keys (mailing_address_zip
, agent_name
, agent_phone_number
, and email_address
)createFromRequest()
, updateGeneralInfo()
and updateFileRatingCharacteristics()
methods. You can also use the tap()
helper to update and return the saved modelSeems like this could be renamed from ContactUs
to Contact
and the database table name from contact_uses
to contacts
Right now this isn't acting as a model, so it doesn't need to be extending Illuminate\Database\Eloquent\Model
. Also, since it's only method is being referenced once in the EmailController
we aren't gaining anything by having this class.
I'd move the request handling and $properties
back into the EmailController
and delete the Email
model class.
It looks like you have a handful of approved
middleware references. You could create a route group for just this middleware, then add all of those routes/sub-groups into the new approved
group
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.