With v3, Localscope now integrates with the new Apple Maps app by letting users open points of interest found in Localscope into the Maps app for turn by turn directions or visual exploration using the awesome new 3D flyover view. Localscope v3 has been completely re-engineered around the new iOS6 to take advantage of its new features like native sharing integration and native Facebook authentication, and flaunts an updated user interface to better match the new iOS 6 design. Besides being available in the Reminders app, this itinerary can be viewed in a nearest to farthest distance sorted list or plotted on a map in Localscope, for easy destination selection or navigation routing during the travel." Localscope could be used to create a trip itinerary by searching for diverse points of interest across social networks and search engines and adding reminders to them. Localscope could be used to quickly create a list of new restaurants a user would like to visit someday, and get alerted if any of them happen to be in the users proximity any time in the future. "The bi-directional integration with the the iPhone reminders system opens up a large number of unprecedented uses and possibilities for both apps. With the new Version 3, Localscope takes a big step towards this goal." said Apurva Roy Choudhury, CEO, Cynapse. "Our goal with Localscope is to provide the ultimate tool to discover and visualize various forms of information about the users' vicinity and apply this information in increasingly useful ways to their daily lives. This lets users visualize reminders as location points using the 3 unique views of Localscope and take further actions on the reminders like getting directions to the points using any of the integrated navigation apps. Beyond adding reminders, Localscope aggregates all location based reminders from the reminders app and presents them as search and discovery sources in Localscope. Users can choose to be alerted by push notifications on arrival at, or departure from the location and even categorize the reminders into lists from within Localscope. Localscope now integrates with the iPhone's reminders system and lets users set location based reminders at any discovered location. However, if you want to make this scope dynamic and want to get completed on non-completed projects then you can supply an argument, just define an input parameter as you would do on any model method.Cynapse is excited to announce version 3 of the iPhone location browser app, Localscope, an update that empowers users to better remember things to do at or around locations. With the scope defined above, you can execute it like so: $completedProjects = Project::completed()->get() Creating Dynamic Scopes in Laravel Scopes are defined by prefixing the name of a method with scope, as below. The scope is just a method that you can use in your model to encapsulate the syntax used to execute a query such as above. You can use Laravel scopes to DRY up the code. You might need to use the above condition in various places throughout your application. $completedProjects = Project::where('completed', 1)->get() You can use the following condition to retrieve completed projects. Creating Scopes in LaravelĬonsider you are building a project management application, and in various places, you have to fetch all completed projects. In this post, I’ll show you how to easily integrates scopes into your Laravel models. Laravel provides a solution for wrapping your conditions into a readable and reusable statement, called Scopes. Sometimes you run into a situation when you have to reuse some of the conditions more, let’s see how to easily integrates scopes in Laravel models.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |