Laravel Eloquent Sum of relation’s column

I’ve been working on a shopping cart application and now I’ve come to the following issue.. There is a User, a Product and a Cart object. The Cart table only contains the following columns: id, user_id, product_id and timestamps. The UserModel hasMany Carts (because a user can store multiple products). The CartModel belongsTo a User … Read more

SQL ON DELETE CASCADE, Which Way Does the Deletion Occur?

If I have two relations in a database, like this: CREATE TABLE Courses ( CourseID int NOT NULL PRIMARY KEY, Course VARCHAR(63) NOT NULL UNIQUE, Code CHAR(4) NOT NULL UNIQUE ); CREATE TABLE BookCourses ( EntryID int NOT NULL PRIMARY KEY, BookID int NOT NULL, Course CHAR(4) NOT NULL, CourseNum CHAR(3) NOT NULL, CourseSec CHAR(1) … Read more

What version of Adobe Illustrator do I need to downsave my files to (for customers) in order for all versions to be compatible?

I am busy designing illustrations in Adobe Illustrator for a customer, and they have kindly asked me to save my illustrator files so it is compatible with all versions, and they don’t run into any problems. I would just like to know which version I should save it as? The options are: CS6, CS5, CS4, … Read more

Packaging design process? From pricing, to mockups, to finding vendors [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 years ago. Improve this question I’m wondering what the general process is for packaging design? I’ve got a few years … Read more

What can one do with a collection of unused, quality digital art/graphics? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago. Improve this question TL;DR I’m looking for ideas as to what to do with a large collection of … Read more

Client made drastic changes after we finalized, what should I put in my portfolio?

So I worked with a community service type of client for pretty cheap last summer and created a really gorgeous design for a mobile shower they rolled out this last fall. They have since changed my design drastically, printed it in a completely different way and added the word “trailer” which I insisted on more … Read more

Is this logo redesign a step in the right direction or is it better to stick with the original?

NOTE: This is a continuation from a previous question: Critique Request: CAD drafting contractor logo I’ve implemented some of the suggested changes from my previous for this logo redesign project, incorporating a simpler grid (to hopefully keep my client happy). 🙂 Here’s where that led: Then I decided to try something even simpler, working a … Read more