Adding Fullcalendar to your application with Laravel Mix

blah

***important - Do not attempt to complete the following blog post without first having set up npm and laravel mix. A good description of how to do this is in this post https://www.learnlaravel.net/953/adding-a-star-rating-system-to-your-application-step-4-adding-the-star-rating-component/.*** Once you are using Laravel mix to keep your plugins organised you will want to use it everywhere. Earlier we demonstrated an [...]

Read More...

>

Adding a Star Rating system to your application - Step 1 - Generating BREAD for Star Ratings

blah

Many modern web-based software application are heavily dependent on star rating systems. In a typical scenario users in an online marketplace for a product or service have the ability to rate the product, service or their experience. As more and more ratings are added the "wisdom of the crowd" takes over. Where there are many [...]

Read More...

>

Adding a Star Rating system to your spplication - Step 2 - Putting the Foreign Key in the Flow

blah

When building a system based on a reltional database developers are challenged to deal with all the foreign keys. In the Getting Started section we scaffolded the bookings table and auto-generated the create.blade.php view which allowed us to create new bookings. The challenge with this screen is, with two foreign keys, it led to confusion [...]

Read More...

>

Adding a Star Rating system to your application - Step 3 - Selecting which Court to Rate

blah

On the courts page where there is a list of courts there are a number of things we can do each court. So far these options include show, edit and delete. These options work by passing the courtid selected by the user to the through the url to the relevant controller function. The respective controller [...]

Read More...

>

Adding a Star Rating system to your application - Step 4 - Adding the Star Rating component

blah

When we first contructed our Laravel tennis club application we used Composer the PHP dependency package management system. This downloaded Laravel and a whole range of third party packages on which Laravel depends. We then added the Infyom generator, and the packages on which depends - also using Composer. Later when we used FullCalendar, the [...]

Read More...

>

Adding a Star Rating system to your application – Step 5 – Changing the View to use the CSS Star Rating component

blah

The next step is straight forward. We need to modify the ratecourt view to replace the simple number based rating with our new bootstrap-star-rating component. To do this, open the file resources/views/courtratings/ratecourt_fields.blade.php and replace the blade helper which creates the rating field with the following line {!! Form::number('rating', null, ['class' => 'rating', 'data-min' => 0, [...]

Read More...

>

Adding a Star Rating system to your application – Step 6 - Viewing an average of all ratings submitted

blah

Laravel Eloquent provides a range useful functions that operate over Collections. Collections are basically a more sophisticated version of an array of object with a range of additional features which allow you to query, filter and control the results. Some useful functions can be found here https://laravel.com/docs/6.x/collections#available-methods. One of these methods provides an ability to [...]

Read More...

>